Clear cargo check diagnostics when flycheck is turned off

This commit is contained in:
Jonas Schievink 2022-05-20 15:07:55 +02:00
parent 7f226fc912
commit 3e356c1fd3

View file

@ -404,6 +404,7 @@ impl GlobalState {
Some(it) => it,
None => {
self.flycheck = Vec::new();
self.diagnostics.clear_check();
return;
}
};