aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorTristan Knight <admin@snappeh.com>2026-01-02 06:46:13 +0000
committerGitHub <noreply@github.com>2026-01-02 01:46:13 -0500
commited562c296abeac25fc5d81708b9ada09da608772 (patch)
treed7c199cf819d05da77b21ee216bc3dca529cdade /runtime/lua/vim/lsp/protocol.lua
parenta3c56d1002ced628a69e098ca401fc93d8afe291 (diff)
downloadrneovim-ed562c296abeac25fc5d81708b9ada09da608772.tar.gz
rneovim-ed562c296abeac25fc5d81708b9ada09da608772.tar.bz2
rneovim-ed562c296abeac25fc5d81708b9ada09da608772.zip
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
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua60
1 files changed, 60 insertions, 0 deletions
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