Merge #8679
8679: fix: don't show error message for a valid notification r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
86b5084917
@ -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(¶ms.text_document.uri) {
|
if let Ok(path) = from_proto::vfs_path(¶ms.text_document.uri) {
|
||||||
if this
|
if this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user