diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 6ea775d68..a766aacad 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -571,6 +571,12 @@ impl GlobalState { | |||
571 | this.cancel(id); | 571 | this.cancel(id); |
572 | Ok(()) | 572 | Ok(()) |
573 | })? | 573 | })? |
574 | .on::<lsp_types::notification::WorkDoneProgressCancel>(|_this, _params| { | ||
575 | // Just ignore this. It is OK to continue sending progress | ||
576 | // notifications for this token, as the client can't know when | ||
577 | // we accepted notification. | ||
578 | Ok(()) | ||
579 | })? | ||
574 | .on::<lsp_types::notification::DidOpenTextDocument>(|this, params| { | 580 | .on::<lsp_types::notification::DidOpenTextDocument>(|this, params| { |
575 | if let Ok(path) = from_proto::vfs_path(¶ms.text_document.uri) { | 581 | if let Ok(path) = from_proto::vfs_path(¶ms.text_document.uri) { |
576 | if this | 582 | if this |