Skip to content

Commit f45c1ff

Browse files
committed
fix: don't show error message for a valid notification
Closes #6782, #6772
1 parent 6cd669e commit f45c1ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ impl GlobalState {
571571
this.cancel(id);
572572
Ok(())
573573
})?
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+
})?
574580
.on::<lsp_types::notification::DidOpenTextDocument>(|this, params| {
575581
if let Ok(path) = from_proto::vfs_path(&params.text_document.uri) {
576582
if this

0 commit comments

Comments
 (0)