fix: clear diagnostics on cancel unconditionally, fixing #18854

This commit is contained in:
David Barsky 2025-01-06 18:33:19 -05:00
parent 5afee0d54d
commit e02b3ec9cc

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