From f45c1ffc5b7b3f0a0826637d50f753f05d60721d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 27 Apr 2021 16:04:12 +0300 Subject: fix: don't show error message for a valid notification Closes #6782, #6772 --- crates/rust-analyzer/src/main_loop.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates') 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 { this.cancel(id); Ok(()) })? + .on::(|_this, _params| { + // Just ignore this. It is OK to continue sending progress + // notifications for this token, as the client can't know when + // we accepted notification. + Ok(()) + })? .on::(|this, params| { if let Ok(path) = from_proto::vfs_path(¶ms.text_document.uri) { if this -- cgit v1.2.3