aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/_meta/protocol.lua
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2024-02-21 03:31:56 -0800
committerGitHub <noreply@github.com>2024-02-21 12:31:56 +0100
commitac0e8323dc82622a201f49efcdfcb79567a8f75e (patch)
tree74578b89daf09d694ad1b34a17cff66bc8dc41dc /runtime/lua/vim/lsp/_meta/protocol.lua
parent09651342e746af38c38f22f3cae6bfb40dade327 (diff)
downloadrneovim-ac0e8323dc82622a201f49efcdfcb79567a8f75e.tar.gz
rneovim-ac0e8323dc82622a201f49efcdfcb79567a8f75e.tar.bz2
rneovim-ac0e8323dc82622a201f49efcdfcb79567a8f75e.zip
fix(lsp): add parentheses to generated union array types (#27560)
Diffstat (limited to 'runtime/lua/vim/lsp/_meta/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/_meta/protocol.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/_meta/protocol.lua b/runtime/lua/vim/lsp/_meta/protocol.lua
index b897b6bba5..a5da5ac6b7 100644
--- a/runtime/lua/vim/lsp/_meta/protocol.lua
+++ b/runtime/lua/vim/lsp/_meta/protocol.lua
@@ -409,7 +409,7 @@ error('Cannot require a meta file')
---
---If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` then
---only plain `TextEdit`s using the `changes` property are supported.
----@field documentChanges? lsp.TextDocumentEdit|lsp.CreateFile|lsp.RenameFile|lsp.DeleteFile[]
+---@field documentChanges? (lsp.TextDocumentEdit|lsp.CreateFile|lsp.RenameFile|lsp.DeleteFile)[]
---
---A map of change annotations that can be referenced in `AnnotatedTextEdit`s or create, rename and
---delete file / folder operations.
@@ -1888,7 +1888,7 @@ error('Cannot require a meta file')
---
---@since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a
---client capability.
----@field edits lsp.TextEdit|lsp.AnnotatedTextEdit[]
+---@field edits (lsp.TextEdit|lsp.AnnotatedTextEdit)[]
---Create file operation.
---@class lsp.CreateFile: lsp.ResourceOperation
@@ -3146,7 +3146,7 @@ error('Cannot require a meta file')
---@class lsp.NotebookDocumentSyncOptions
---
---The notebooks to be synced
----@field notebookSelector lsp._anonym14.notebookSelector|lsp._anonym16.notebookSelector[]
+---@field notebookSelector (lsp._anonym14.notebookSelector|lsp._anonym16.notebookSelector)[]
---
---Whether save notification should be forwarded to
---the server. Will only be honored if mode === `notebook`.