mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Auto merge of #12325 - jonas-schievink:clear-check-diags, r=jonas-schievink
fix: Clear `cargo check` diagnostics when flycheck is turned off Previously stale diagnostics were left over indefinitely when turning off "Check on Save" while diagnostics are present.
This commit is contained in:
commit
c73513f211
1 changed files with 1 additions and 0 deletions
|
@ -404,6 +404,7 @@ impl GlobalState {
|
||||||
Some(it) => it,
|
Some(it) => it,
|
||||||
None => {
|
None => {
|
||||||
self.flycheck = Vec::new();
|
self.flycheck = Vec::new();
|
||||||
|
self.diagnostics.clear_check();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue