Unnamed repository; edit this file 'description' to name the repository.
Fix Cargo.toml change detection
| -rw-r--r-- | crates/rust-analyzer/src/global_state.rs | 6 |
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; } } |