aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-01-11 11:39:11 -0500
committerGitHub <noreply@github.com>2021-01-11 11:39:11 -0500
commite0a4399adc4472b9b02a26c7f93b056c4725a6b9 (patch)
tree81980fd4f008fd4f404a913bd3d40d86c327b1de /runtime/doc
parent0c0c3ee330c9e3aa7d6f054073b999c5f8001472 (diff)
downloadrneovim-e0a4399adc4472b9b02a26c7f93b056c4725a6b9.tar.gz
rneovim-e0a4399adc4472b9b02a26c7f93b056c4725a6b9.tar.bz2
rneovim-e0a4399adc4472b9b02a26c7f93b056c4725a6b9.zip
fix(lsp): Allow subsequent text document edits to pass (#13534)
* fix: Allow subsequent text document edits to pass * fixup: cleaner code * add tests
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 6ca7b52fff..88e8275b44 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1400,9 +1400,15 @@ show_line_diagnostics({opts}, {bufnr}, {line_nr}, {client_id})
Lua module: vim.lsp.util *lsp-util*
*vim.lsp.util.apply_text_document_edit()*
-apply_text_document_edit({text_document_edit})
+apply_text_document_edit({text_document_edit}, {index})
+ Applies a `TextDocumentEdit` , which is a list of changes to a
+ single document.
+
Parameters: ~
- {text_document_edit} (table) a `TextDocumentEdit` object
+ {text_document_edit} table: a `TextDocumentEdit` object
+ {index} number: Optional index of the edit,
+ if from a list of edits (or nil, if
+ not from a list)
See also: ~
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentEdit