mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-15 10:12:21 +00:00
Merge pull request #18858 from davidbarsky/davidbarsky/fix-18854
fix: clear diagnostics on cancel unconditionally
This commit is contained in:
commit
ccc7468995
1 changed files with 2 additions and 2 deletions
|
|
@ -419,10 +419,10 @@ impl FlycheckActor {
|
||||||
command_handle.cancel();
|
command_handle.cancel();
|
||||||
self.command_receiver.take();
|
self.command_receiver.take();
|
||||||
self.report_progress(Progress::DidCancel);
|
self.report_progress(Progress::DidCancel);
|
||||||
|
}
|
||||||
self.diagnostics_cleared_for.clear();
|
self.diagnostics_cleared_for.clear();
|
||||||
self.diagnostics_received = false;
|
self.diagnostics_received = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// Construct a `Command` object for checking the user's code. If the user
|
/// Construct a `Command` object for checking the user's code. If the user
|
||||||
/// has specified a custom command with placeholders that we cannot fill,
|
/// has specified a custom command with placeholders that we cannot fill,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue