Skip to content

Commit

Permalink
Merge pull request rust-lang#18858 from davidbarsky/davidbarsky/fix-1…
Browse files Browse the repository at this point in the history
…8854

fix: clear diagnostics on cancel unconditionally
  • Loading branch information
ChayimFriedman2 authored Jan 6, 2025
2 parents 5afee0d + e02b3ec commit 78f89a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ impl FlycheckActor {
command_handle.cancel();
self.command_receiver.take();
self.report_progress(Progress::DidCancel);
self.diagnostics_cleared_for.clear();
self.diagnostics_received = false;
}
self.diagnostics_cleared_for.clear();
self.diagnostics_received = false;
}

/// Construct a `Command` object for checking the user's code. If the user
Expand Down

0 comments on commit 78f89a6

Please sign in to comment.