Skip to content

Commit

Permalink
Merge pull request #18858 from davidbarsky/davidbarsky/fix-18854
Browse files Browse the repository at this point in the history
fix: clear diagnostics on cancel unconditionally
  • Loading branch information
ChayimFriedman2 authored Jan 6, 2025
2 parents bfb8127 + 140f91b commit ccc7468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 ccc7468

Please sign in to comment.