Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #21970 from PRO-2684/patch-1
fix: Reload when documentation changes
Chayim Refael Friedman 7 weeks ago
parent 09ae159 · parent cd69678 · commit a429358
-rw-r--r--crates/rust-analyzer/src/reload.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs
index 71accbed4e..b85fe9c15c 100644
--- a/crates/rust-analyzer/src/reload.rs
+++ b/crates/rust-analyzer/src/reload.rs
@@ -582,7 +582,8 @@ impl GlobalState {
[
(base.clone(), "**/*.rs"),
(base.clone(), "**/Cargo.{lock,toml}"),
- (base, "**/rust-analyzer.toml"),
+ (base.clone(), "**/rust-analyzer.toml"),
+ (base, "**/*.md"),
]
})
})
@@ -607,6 +608,7 @@ impl GlobalState {
format!("{base}/**/*.rs"),
format!("{base}/**/Cargo.{{toml,lock}}"),
format!("{base}/**/rust-analyzer.toml"),
+ format!("{base}/**/*.md"),
]
})
})