Skip to content

Commit

Permalink
Clear cargo check diagnostics when flycheck is turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Schievink committed May 20, 2022
1 parent 7f226fc commit 3e356c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rust-analyzer/src/reload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ impl GlobalState {
Some(it) => it,
None => {
self.flycheck = Vec::new();
self.diagnostics.clear_check();
return;
}
};
Expand Down

0 comments on commit 3e356c1

Please sign in to comment.