aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2024-08-03 11:14:12 +0200
committerGitHub <noreply@github.com>2024-08-03 11:14:12 +0200
commit6072153796d1b1e54067ac9823583be96b24ede1 (patch)
treeaf94901bc3948395f6f89a78348857b775076beb /runtime/lua/vim/lsp/protocol.lua
parent4f3801c9257e364d777d4324489afefa6b5d3fff (diff)
downloadrneovim-6072153796d1b1e54067ac9823583be96b24ede1.tar.gz
rneovim-6072153796d1b1e54067ac9823583be96b24ede1.tar.bz2
rneovim-6072153796d1b1e54067ac9823583be96b24ede1.zip
feat(lsp): announce codeLens resolveSupport (#29956)
The codelens implementation can resolve command via `codeLens/resolve`. The spec added client capabilities for that: https://github.com/microsoft/language-server-protocol/pull/1979
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index b53f9a207a..2514a62f89 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -427,6 +427,12 @@ function protocol.make_client_capabilities()
properties = { 'edit' },
},
},
+ codeLens = {
+ dynamicRegistration = false,
+ resolveSupport = {
+ properties = { 'command' },
+ },
+ },
formatting = {
dynamicRegistration = true,
},