mirror of
https://github.com/neovim/neovim.git
synced 2026-02-19 09:58:32 +00:00
fix(lsp): map all LSP methods to server capabilities (#37910)
This commit is contained in:
@@ -1222,12 +1222,30 @@ protocol._provider_to_client_registration = {
|
||||
-- stylua: ignore start
|
||||
-- Generated by gen_lsp.lua, keep at end of file.
|
||||
--- Maps method names to the required server capability
|
||||
-- A server capability equal to the method means there is no related server capability
|
||||
protocol._request_name_to_server_capability = {
|
||||
['callHierarchy/incomingCalls'] = { 'callHierarchy/incomingCalls' },
|
||||
['callHierarchy/outgoingCalls'] = { 'callHierarchy/outgoingCalls' },
|
||||
['client/registerCapability'] = { 'client/registerCapability' },
|
||||
['client/unregisterCapability'] = { 'client/unregisterCapability' },
|
||||
['codeAction/resolve'] = { 'codeActionProvider', 'resolveProvider' },
|
||||
['codeLens/resolve'] = { 'codeLensProvider', 'resolveProvider' },
|
||||
['completionItem/resolve'] = { 'completionProvider', 'resolveProvider' },
|
||||
['documentLink/resolve'] = { 'documentLinkProvider', 'resolveProvider' },
|
||||
['$/cancelRequest'] = { '$/cancelRequest' },
|
||||
['$/logTrace'] = { '$/logTrace' },
|
||||
['$/progress'] = { '$/progress' },
|
||||
['$/setTrace'] = { '$/setTrace' },
|
||||
['exit'] = { 'exit' },
|
||||
['initialize'] = { 'initialize' },
|
||||
['initialized'] = { 'initialized' },
|
||||
['inlayHint/resolve'] = { 'inlayHintProvider', 'resolveProvider' },
|
||||
['notebookDocument/didChange'] = { 'notebookDocument/didChange' },
|
||||
['notebookDocument/didClose'] = { 'notebookDocument/didClose' },
|
||||
['notebookDocument/didOpen'] = { 'notebookDocument/didOpen' },
|
||||
['notebookDocument/didSave'] = { 'notebookDocument/didSave' },
|
||||
['shutdown'] = { 'shutdown' },
|
||||
['telemetry/event'] = { 'telemetry/event' },
|
||||
['textDocument/codeAction'] = { 'codeActionProvider' },
|
||||
['textDocument/codeLens'] = { 'codeLensProvider' },
|
||||
['textDocument/colorPresentation'] = { 'colorProvider' },
|
||||
@@ -1256,6 +1274,7 @@ protocol._request_name_to_server_capability = {
|
||||
['textDocument/prepareCallHierarchy'] = { 'callHierarchyProvider' },
|
||||
['textDocument/prepareRename'] = { 'renameProvider', 'prepareProvider' },
|
||||
['textDocument/prepareTypeHierarchy'] = { 'typeHierarchyProvider' },
|
||||
['textDocument/publishDiagnostics'] = { 'textDocument/publishDiagnostics' },
|
||||
['textDocument/rangeFormatting'] = { 'documentRangeFormattingProvider' },
|
||||
['textDocument/rangesFormatting'] = { 'documentRangeFormattingProvider', 'rangesSupport' },
|
||||
['textDocument/references'] = { 'referencesProvider' },
|
||||
@@ -1268,21 +1287,39 @@ protocol._request_name_to_server_capability = {
|
||||
['textDocument/typeDefinition'] = { 'typeDefinitionProvider' },
|
||||
['textDocument/willSave'] = { 'textDocumentSync', 'willSave' },
|
||||
['textDocument/willSaveWaitUntil'] = { 'textDocumentSync', 'willSaveWaitUntil' },
|
||||
['typeHierarchy/subtypes'] = { 'typeHierarchy/subtypes' },
|
||||
['typeHierarchy/supertypes'] = { 'typeHierarchy/supertypes' },
|
||||
['window/logMessage'] = { 'window/logMessage' },
|
||||
['window/showDocument'] = { 'window/showDocument' },
|
||||
['window/showMessage'] = { 'window/showMessage' },
|
||||
['window/showMessageRequest'] = { 'window/showMessageRequest' },
|
||||
['window/workDoneProgress/cancel'] = { 'window/workDoneProgress/cancel' },
|
||||
['window/workDoneProgress/create'] = { 'window/workDoneProgress/create' },
|
||||
['workspaceSymbol/resolve'] = { 'workspaceSymbolProvider', 'resolveProvider' },
|
||||
['workspace/applyEdit'] = { 'workspace/applyEdit' },
|
||||
['workspace/codeLens/refresh'] = { 'workspace/codeLens/refresh' },
|
||||
['workspace/configuration'] = { 'workspace/configuration' },
|
||||
['workspace/diagnostic'] = { 'diagnosticProvider', 'workspaceDiagnostics' },
|
||||
['workspace/diagnostic/refresh'] = { 'workspace/diagnostic/refresh' },
|
||||
['workspace/didChangeConfiguration'] = { 'workspace/didChangeConfiguration' },
|
||||
['workspace/didChangeWatchedFiles'] = { 'workspace/didChangeWatchedFiles' },
|
||||
['workspace/didChangeWorkspaceFolders'] = { 'workspace', 'workspaceFolders', 'changeNotifications' },
|
||||
['workspace/didCreateFiles'] = { 'workspace', 'fileOperations', 'didCreate' },
|
||||
['workspace/didDeleteFiles'] = { 'workspace', 'fileOperations', 'didDelete' },
|
||||
['workspace/didRenameFiles'] = { 'workspace', 'fileOperations', 'didRename' },
|
||||
['workspace/executeCommand'] = { 'executeCommandProvider' },
|
||||
['workspace/foldingRange/refresh'] = { 'workspace/foldingRange/refresh' },
|
||||
['workspace/inlayHint/refresh'] = { 'workspace/inlayHint/refresh' },
|
||||
['workspace/inlineValue/refresh'] = { 'workspace/inlineValue/refresh' },
|
||||
['workspace/semanticTokens/refresh'] = { 'workspace/semanticTokens/refresh' },
|
||||
['workspace/symbol'] = { 'workspaceSymbolProvider' },
|
||||
['workspace/textDocumentContent'] = { 'workspace', 'textDocumentContent' },
|
||||
['workspace/textDocumentContent/refresh'] = { 'workspace/textDocumentContent/refresh' },
|
||||
['workspace/willCreateFiles'] = { 'workspace', 'fileOperations', 'willCreate' },
|
||||
['workspace/willDeleteFiles'] = { 'workspace', 'fileOperations', 'willDelete' },
|
||||
['workspace/willRenameFiles'] = { 'workspace', 'fileOperations', 'willRename' },
|
||||
['workspace/workspaceFolders'] = { 'workspace', 'workspaceFolders' },
|
||||
['textDocument/semanticTokens'] = { 'semanticTokensProvider' },
|
||||
['workspace/didChangeWatchedFiles'] = { 'workspace/didChangeWatchedFiles' },
|
||||
}
|
||||
-- stylua: ignore end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user