mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Clear all check diagnostics when the workspace changes
This commit is contained in:
parent
4a8eb8c229
commit
db8660410f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue