Repository: neovim/neovim
File: runtime/lua/vim/lsp/protocol.lua (Lua)

Code before:
  --- the content of a specific text document.
  --- @since 3.18.0
  --- @proposed
  workspace_textDocumentContent_refresh = 'workspace/textDocumentContent/refresh',
  --- The will create files request is sent from the client to the server before files are actually
  --- created as long as the creation is triggered from within the client.
  --- The request can return a `WorkspaceEdit` which will be applied to workspace before the
  --- files are created. Hence the `WorkspaceEdit` can not manipulate the content of the file
  --- to be created.
  --- @since 3.16.0
  workspace_willCreateFiles = 'workspace/willCreateFiles',
  --- The did delete files notification is sent from the client to the server when
  --- files were deleted from within the client.
  --- @since 3.16.0
  workspace_willDeleteFiles = 'workspace/willDeleteFiles',
  --- The will rename files request is sent from the client to the server before files are actually
  --- renamed as long as the rename is triggered from within the client.
  --- @since 3.16.0
  workspace_willRenameFiles = 'workspace/willRenameFiles',
  --- The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
  workspace_workspaceFolders = 'workspace/workspaceFolders',
}

-- Generated by gen_lsp.lua, keep at end of file.
--- LSP registration methods
---@alias vim.lsp.protocol.RegistrationMethods
--- | 'notebookDocument/sync'
--- | 'textDocument/codeAction'
--- | 'textDocument/codeLens'
--- | 'textDocument/colorPresentation'
--- | 'textDocument/completion'
--- | 'textDocument/declaration'
--- | 'textDocument/definition'
--- | 'textDocument/diagnostic'
--- | 'textDocument/didChange'
--- | 'textDocument/didClose'
--- | 'textDocument/didOpen'
--- | 'textDocument/didSave'
--- | 'textDocument/documentColor'
--- | 'textDocument/documentHighlight'
--- | 'textDocument/documentLink'
--- | 'textDocument/documentSymbol'
--- | 'textDocument/foldingRange'
--- | 'textDocument/formatting'
--- | 'textDocument/hover'
--- | 'textDocument/implementation'
--- | 'textDocument/inlayHint'
--- | 'textDocument/inlineCompletion'
--- | 'textDocument/inlineValue'
--- | 'textDocument/linkedEditingRange'
--- | 'textDocument/moniker'

Review comment (suggestion):
```suggestion
---@alias vim.lsp.protocol.RegistrationMethod
```
The type should be singular as it references variables representing a single method.

Code after:
  --- the content of a specific text document.
  --- @since 3.18.0
  --- @proposed
  workspace_textDocumentContent_refresh = 'workspace/textDocumentContent/refresh',
  --- The will create files request is sent from the client to the server before files are actually
  --- created as long as the creation is triggered from within the client.
  --- The request can return a `WorkspaceEdit` which will be applied to workspace before the
  --- files are created. Hence the `WorkspaceEdit` can not manipulate the content of the file
  --- to be created.
  --- @since 3.16.0
  workspace_willCreateFiles = 'workspace/willCreateFiles',
  --- The did delete files notification is sent from the client to the server when
  --- files were deleted from within the client.
  --- @since 3.16.0
  workspace_willDeleteFiles = 'workspace/willDeleteFiles',
  --- The will rename files request is sent from the client to the server before files are actually
  --- renamed as long as the rename is triggered from within the client.
  --- @since 3.16.0
  workspace_willRenameFiles = 'workspace/willRenameFiles',
  --- The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
  workspace_workspaceFolders = 'workspace/workspaceFolders',
}

-- Generated by gen_lsp.lua, keep at end of file.
--- LSP registration methods
---@alias vim.lsp.protocol.Method.Registration
--- | 'notebookDocument/sync'
--- | 'textDocument/semanticTokens'

-- stylua: ignore start
-- Generated by gen_lsp.lua, keep at end of file.
--- Maps method names to the required client capability
protocol._request_name_to_client_capability = {
  ['codeAction/resolve'] = { 'textDocument', 'codeAction', 'resolveSupport' },
  ['codeLens/resolve'] = { 'textDocument', 'codeLens', 'resolveSupport' },
  ['completionItem/resolve'] = { 'textDocument', 'completion', 'completionItem', 'resolveSupport' },
  ['documentLink/resolve'] = { 'textDocument', 'documentLink' },
  ['inlayHint/resolve'] = { 'textDocument', 'inlayHint', 'resolveSupport' },
  ['textDocument/codeAction'] = { 'textDocument', 'codeAction' },
  ['textDocument/codeLens'] = { 'textDocument', 'codeLens' },
  ['textDocument/colorPresentation'] = { 'textDocument', 'colorProvider' },
  ['textDocument/completion'] = { 'textDocument', 'completion' },
  ['textDocument/declaration'] = { 'textDocument', 'declaration' },
  ['textDocument/definition'] = { 'textDocument', 'definition' },
  ['textDocument/diagnostic'] = { 'textDocument', 'diagnostic' },
  ['textDocument/didChange'] = { 'textDocument', 'synchronization' },
  ['textDocument/didClose'] = { 'textDocument', 'synchronization' },
  ['textDocument/didOpen'] = { 'textDocument', 'synchronization' },
  ['textDocument/didSave'] = { 'textDocument', 'synchronization', 'didSave' },
  ['textDocument/documentColor'] = { 'textDocument', 'colorProvider' },
  ['textDocument/documentHighlight'] = { 'textDocument', 'documentHighlight' },