From d2b217b043d0d61862201ff3f4a308ec9a3697ad Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 15 Jul 2026 06:49:45 -0400 Subject: [PATCH] fix(lsp): improve inlayHint.resolveSupport in client capabilities #40741 Problem The current list of properties for inlay hint resolve support includes a non-existent "location". This field should be "label.location" according to the specification. Tooltips and commands for inlay hint "parts" aren't advertised as being resolvable. Solution Remove "location" and add "label.location", "label.tooltip", and "label.command". Closes #40740 (cherry picked from commit 4bc30d6e1024788c6acf54cf3e4a98618123482e) --- runtime/lua/vim/lsp/protocol.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index aa9484d10e..98e6607a8e 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -366,8 +366,10 @@ function protocol.make_client_capabilities() properties = { 'textEdits', 'tooltip', - 'location', 'command', + 'label.location', + 'label.tooltip', + 'label.command', }, }, },