Unnamed repository; edit this file 'description' to name the repository.
Fix Cargo.toml change detection
Laurențiu Nicola 2021-09-13
parent 21a1ced · commit 8875f2c
-rw-r--r--crates/rust-analyzer/src/global_state.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/global_state.rs b/crates/rust-analyzer/src/global_state.rs
index 19ddd7c717..6744bf62da 100644
--- a/crates/rust-analyzer/src/global_state.rs
+++ b/crates/rust-analyzer/src/global_state.rs
@@ -186,9 +186,9 @@ impl GlobalState {
}
for file in changed_files {
- if file.is_created_or_deleted() {
- if let Some(path) = vfs.file_path(file.file_id).as_path() {
- fs_changes.push((path.to_path_buf(), file.change_kind));
+ if let Some(path) = vfs.file_path(file.file_id).as_path() {
+ fs_changes.push((path.to_path_buf(), file.change_kind));
+ if file.is_created_or_deleted() {
has_fs_changes = true;
}
}