Skip to content

Commit 2f4e555

Browse files
committed
fix: Fix flycheck panicking when cancelled
1 parent 74c1675 commit 2f4e555

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/tools/rust-analyzer/crates/flycheck/src

‎src/tools/rust-analyzer/crates/flycheck/src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ impl FlycheckActor {
386386
"did cancel flycheck"
387387
);
388388
command_handle.cancel();
389+
self.command_receiver.take();
389390
self.report_progress(Progress::DidCancel);
390391
self.status = FlycheckStatus::Finished;
391392
}

0 commit comments

Comments
 (0)