From 8d5ebdf986226e182b26f9590e65f2ad678b1ca3 Mon Sep 17 00:00:00 2001 From: Volodymyr Chernetskyi Date: Mon, 7 Sep 2026 21:11:00 +0200 Subject: [PATCH] fix(lsp): announce typeHierarchy and executeCommand capabilities #41762 Problem: Type hierarchy (#28388, #28467) and `workspace/executeCommand` (#11607) are implemented, but `textDocument.typeHierarchy` and `workspace.executeCommand` are missing from `make_client_capabilities()`. Solution: Declare both capabilities. AI-assisted --- runtime/lua/vim/lsp/protocol.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index a18b27f288..1e7446a1b4 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -583,6 +583,9 @@ function protocol.make_client_capabilities() callHierarchy = { dynamicRegistration = false, }, + typeHierarchy = { + dynamicRegistration = false, + }, colorProvider = { dynamicRegistration = true, }, @@ -607,6 +610,9 @@ function protocol.make_client_capabilities() didChangeConfiguration = { dynamicRegistration = false, }, + executeCommand = { + dynamicRegistration = false, + }, workspaceFolders = true, applyEdit = true, workspaceEdit = {