diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-04-30 02:22:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 11:22:30 +0200 |
commit | c618b314c6a266806edf692122b16ba9ff7a8e10 (patch) | |
tree | 8e78db8393fc2a567fd3515c73a60f6041a2a6bb /runtime/doc | |
parent | df09e03cf74337675751c3240069a26aec75fa3b (diff) | |
download | rneovim-c618b314c6a266806edf692122b16ba9ff7a8e10.tar.gz rneovim-c618b314c6a266806edf692122b16ba9ff7a8e10.tar.bz2 rneovim-c618b314c6a266806edf692122b16ba9ff7a8e10.zip |
chore(lsp): remove capabilities sanitization (#17814)
* feat(lsp)!: remove capabilities sanitization
Users must now access client.server_capabilities which matches the same
structure as the protocol.
https://microsoft.github.io/language-server-protocol/specification
client.resolved_capabilities is no longer used to gate capabilities, and
will be removed in a future release.
BREAKING CHANGE
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index bf4c2b59d1..29f8fab68e 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -653,9 +653,6 @@ client() *vim.lsp.client* user to |vim.lsp.start_client()|. • {server_capabilities} (table): Response from the server sent on `initialize` describing the server's capabilities. - • {resolved_capabilities} (table): Normalized table of - capabilities that we have detected based on the initialize - response from the server in `server_capabilities`. client_is_stopped({client_id}) *vim.lsp.client_is_stopped()* Checks whether a client is stopped. @@ -1875,8 +1872,8 @@ request({method}, {params}, {callback}, {notify_reply_callback}) {params} (table) Parameters for the invoked LSP method {callback} (function) Callback to invoke - {notify_reply_callback} (function) Callback to invoke as - soon as a request is no longer + {notify_reply_callback} (function|nil) Callback to invoke + as soon as a request is no longer pending Return: ~ |