]> git.lizzy.rs Git - rust.git/blobdiff - crates/rust-analyzer/src/global_state.rs
Auto merge of #12808 - Veykril:check-workspace, r=Veykril
[rust.git] / crates / rust-analyzer / src / global_state.rs
index 8f881cba4dbd7b113534e3cfdf1d6aa85bf95d27..932a31e08f6fa4ac67badb51e8bc2c88093c23ec 100644 (file)
@@ -192,6 +192,7 @@ pub(crate) fn process_changes(&mut self) -> bool {
                 if let Some(path) = vfs.file_path(file.file_id).as_path() {
                     let path = path.to_path_buf();
                     if reload::should_refresh_for_change(&path, file.change_kind) {
+                        tracing::warn!("fetch-fiel_change");
                         self.fetch_workspaces_queue
                             .request_op(format!("vfs file change: {}", path.display()));
                     }
@@ -201,6 +202,7 @@ pub(crate) fn process_changes(&mut self) -> bool {
                     }
                 }
 
+                // Clear native diagnostics when their file gets deleted
                 if !file.exists() {
                     self.diagnostics.clear_native_for(file.file_id);
                 }