diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs index ed8c24acd1..c1f7e477f1 100644 --- a/crates/rust-analyzer/src/reload.rs +++ b/crates/rust-analyzer/src/reload.rs @@ -404,6 +404,7 @@ impl GlobalState { Some(it) => it, None => { self.flycheck = Vec::new(); + self.diagnostics.clear_check(); return; } };