mirror of
https://github.com/oxalica/nil.git
synced 2024-11-23 12:03:30 +03:00
Handle workspace/didChangeWatchedFiles
This notification is sent unexpectedly by VSCode, observed in #24.
This commit is contained in:
parent
2a9dcd5b15
commit
756be130c8
@ -230,6 +230,12 @@ impl Server {
|
|||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
})?
|
})?
|
||||||
|
.on_sync_mut::<notif::DidChangeWatchedFiles>(|_st, _params| {
|
||||||
|
// Workaround:
|
||||||
|
// > In former implementations clients pushed file events without the server actively asking for it.
|
||||||
|
// Ref: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didChangeWatchedFiles
|
||||||
|
Ok(())
|
||||||
|
})?
|
||||||
.finish()
|
.finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user