mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +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}");
|
error!("FetchWorkspaceError: {e}");
|
||||||
}
|
}
|
||||||
self.wants_to_switch = Some("fetched workspace".to_owned());
|
self.wants_to_switch = Some("fetched workspace".to_owned());
|
||||||
|
self.diagnostics.clear_check_all();
|
||||||
(Progress::End, None)
|
(Progress::End, None)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue