Skip to content

Commit 575b422

Browse files
committed
Clear all check diagnostics when the workspace changes
1 parent e04e0d6 commit 575b422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ impl GlobalState {
715715
error!("FetchWorkspaceError: {e}");
716716
}
717717
self.wants_to_switch = Some("fetched workspace".to_owned());
718+
self.diagnostics.clear_check_all();
718719
(Progress::End, None)
719720
}
720721
};

0 commit comments

Comments
 (0)