feat(lsp): document method types (#35934)

This commit is contained in:
Maria Solano
2025-09-27 14:52:30 -07:00
committed by GitHub
parent 5fbc5ab810
commit c5c6ddba91
3 changed files with 8 additions and 1 deletions

View File

@@ -669,6 +669,7 @@ function protocol.resolve_capabilities(server_capabilities)
end
-- Generated by gen_lsp.lua, keep at end of file.
--- LSP Request (direction: clientToServer)
--- @alias vim.lsp.protocol.Method.ClientToServer.Request
--- | 'callHierarchy/incomingCalls',
--- | 'callHierarchy/outgoingCalls',
@@ -725,6 +726,7 @@ end
--- | 'workspace/willDeleteFiles',
--- | 'workspace/willRenameFiles',
--- LSP Notification (direction: clientToServer)
--- @alias vim.lsp.protocol.Method.ClientToServer.Notification
--- | '$/setTrace',
--- | 'exit',
@@ -746,10 +748,12 @@ end
--- | 'workspace/didDeleteFiles',
--- | 'workspace/didRenameFiles',
--- LSP Message (direction: clientToServer).
--- @alias vim.lsp.protocol.Method.ClientToServer
--- | vim.lsp.protocol.Method.ClientToServer.Request
--- | vim.lsp.protocol.Method.ClientToServer.Notification
--- LSP Request (direction: serverToClient)
--- @alias vim.lsp.protocol.Method.ServerToClient.Request
--- | 'client/registerCapability',
--- | 'client/unregisterCapability',
@@ -767,6 +771,7 @@ end
--- | 'workspace/textDocumentContent/refresh',
--- | 'workspace/workspaceFolders',
--- LSP Notification (direction: serverToClient)
--- @alias vim.lsp.protocol.Method.ServerToClient.Notification
--- | '$/logTrace',
--- | 'telemetry/event',
@@ -774,6 +779,7 @@ end
--- | 'window/logMessage',
--- | 'window/showMessage',
--- LSP Message (direction: serverToClient).
--- @alias vim.lsp.protocol.Method.ServerToClient
--- | vim.lsp.protocol.Method.ServerToClient.Request
--- | vim.lsp.protocol.Method.ServerToClient.Notification