aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-04-27 14:04:12 +0100
committerAleksey Kladov <[email protected]>2021-04-27 14:09:59 +0100
commitf45c1ffc5b7b3f0a0826637d50f753f05d60721d (patch)
treeb4043e3a232cd373f6b0b8d3852d2af00611cf4c /crates
parent6cd669e8809d9e19b2169d04b99f33258848b814 (diff)
fix: don't show error message for a valid notification
Closes #6782, #6772
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs6
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(&params.text_document.uri) { 581 if let Ok(path) = from_proto::vfs_path(&params.text_document.uri) {
576 if this 582 if this