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 @@ fn reload_flycheck(&mut self) {
Some(it) => it, Some(it) => it,
None => { None => {
self.flycheck = Vec::new(); self.flycheck = Vec::new();
self.diagnostics.clear_check();
return; return;
} }
}; };