Unnamed repository; edit this file 'description' to name the repository.
Clear all check diagnostics when the workspace changes
Lukas Wirth 2024-12-20
parent 4a8eb8c · commit db86604
-rw-r--r--crates/rust-analyzer/src/main_loop.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index 5d6e927980..405860c552 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -715,6 +715,7 @@ impl GlobalState {
error!("FetchWorkspaceError: {e}");
}
self.wants_to_switch = Some("fetched workspace".to_owned());
+ self.diagnostics.clear_check_all();
(Progress::End, None)
}
};