Merge pull request #18858 from davidbarsky/davidbarsky/fix-18854

fix: clear diagnostics on cancel unconditionally
This commit is contained in:
Chayim Refael Friedman 2025-01-06 23:59:35 +00:00 committed by GitHub
commit ccc7468995
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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