From 6072153796d1b1e54067ac9823583be96b24ede1 Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Sat, 3 Aug 2024 11:14:12 +0200 Subject: 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 --- runtime/lua/vim/lsp/protocol.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/lua/vim/lsp/protocol.lua') 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, }, -- cgit