fix: don't show error message for a valid notification

Closes #6782, #6772
This commit is contained in:
Aleksey Kladov
2021-04-27 16:04:12 +03:00
parent 6cd669e880
commit f45c1ffc5b

View File

@@ -571,6 +571,12 @@ impl GlobalState {
this.cancel(id); this.cancel(id);
Ok(()) Ok(())
})? })?
.on::<lsp_types::notification::WorkDoneProgressCancel>(|_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::<lsp_types::notification::DidOpenTextDocument>(|this, params| { .on::<lsp_types::notification::DidOpenTextDocument>(|this, params| {
if let Ok(path) = from_proto::vfs_path(&params.text_document.uri) { if let Ok(path) = from_proto::vfs_path(&params.text_document.uri) {
if this if this