From ed562c296abeac25fc5d81708b9ada09da608772 Mon Sep 17 00:00:00 2001 From: Tristan Knight Date: Fri, 2 Jan 2026 06:46:13 +0000 Subject: fix(lsp): improve dynamic registration handling #37161 Work on #37166 - Dynamic Registration Tracking via Provider - Supports_Method - Multiple Registrations - RegistrationOptions may dictate support for a method --- runtime/lua/vim/lsp/protocol.lua | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 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 f600d01ddb..6e4b1f713b 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -1299,4 +1299,64 @@ protocol._request_name_to_server_capability = { } -- stylua: ignore end +-- stylua: ignore start +-- Generated by gen_lsp.lua, keep at end of file. +--- Maps method names to the required client capability +protocol._request_name_allows_registration = { + ['notebookDocument/didChange'] = true, + ['notebookDocument/didClose'] = true, + ['notebookDocument/didOpen'] = true, + ['notebookDocument/didSave'] = true, + ['textDocument/codeAction'] = true, + ['textDocument/codeLens'] = true, + ['textDocument/colorPresentation'] = true, + ['textDocument/completion'] = true, + ['textDocument/declaration'] = true, + ['textDocument/definition'] = true, + ['textDocument/diagnostic'] = true, + ['textDocument/didChange'] = true, + ['textDocument/didClose'] = true, + ['textDocument/didOpen'] = true, + ['textDocument/didSave'] = true, + ['textDocument/documentColor'] = true, + ['textDocument/documentHighlight'] = true, + ['textDocument/documentLink'] = true, + ['textDocument/documentSymbol'] = true, + ['textDocument/foldingRange'] = true, + ['textDocument/formatting'] = true, + ['textDocument/hover'] = true, + ['textDocument/implementation'] = true, + ['textDocument/inlayHint'] = true, + ['textDocument/inlineCompletion'] = true, + ['textDocument/inlineValue'] = true, + ['textDocument/linkedEditingRange'] = true, + ['textDocument/moniker'] = true, + ['textDocument/onTypeFormatting'] = true, + ['textDocument/prepareCallHierarchy'] = true, + ['textDocument/prepareTypeHierarchy'] = true, + ['textDocument/rangeFormatting'] = true, + ['textDocument/rangesFormatting'] = true, + ['textDocument/references'] = true, + ['textDocument/rename'] = true, + ['textDocument/selectionRange'] = true, + ['textDocument/semanticTokens/full'] = true, + ['textDocument/semanticTokens/full/delta'] = true, + ['textDocument/signatureHelp'] = true, + ['textDocument/typeDefinition'] = true, + ['textDocument/willSave'] = true, + ['textDocument/willSaveWaitUntil'] = true, + ['workspace/didChangeConfiguration'] = true, + ['workspace/didChangeWatchedFiles'] = true, + ['workspace/didCreateFiles'] = true, + ['workspace/didDeleteFiles'] = true, + ['workspace/didRenameFiles'] = true, + ['workspace/executeCommand'] = true, + ['workspace/symbol'] = true, + ['workspace/textDocumentContent'] = true, + ['workspace/willCreateFiles'] = true, + ['workspace/willDeleteFiles'] = true, + ['workspace/willRenameFiles'] = true, +} +-- stylua: ignore end + return protocol -- cgit