mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-04 07:35:49 +00:00
fix: Fix flycheck panicking when cancelled
This commit is contained in:
parent
ff07caa9de
commit
48cf13b598
1 changed files with 1 additions and 0 deletions
|
@ -386,6 +386,7 @@ impl FlycheckActor {
|
||||||
"did cancel flycheck"
|
"did cancel flycheck"
|
||||||
);
|
);
|
||||||
command_handle.cancel();
|
command_handle.cancel();
|
||||||
|
self.command_receiver.take();
|
||||||
self.report_progress(Progress::DidCancel);
|
self.report_progress(Progress::DidCancel);
|
||||||
self.status = FlycheckStatus::Finished;
|
self.status = FlycheckStatus::Finished;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue