about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorDropDemBits <r3usrlnd@gmail.com>2023-11-11 22:10:21 -0500
committerDropDemBits <r3usrlnd@gmail.com>2023-11-11 22:12:49 -0500
commit1e4686865efbe5c3a305708d3aceacc181081be8 (patch)
tree3823b223cd72aa4b7af356a1b4f73a68ec861e0a /docs/dev
parent3b7c7f97e4a7bb253a8d398ee4f8346f6cf2817b (diff)
downloadrust-1e4686865efbe5c3a305708d3aceacc181081be8.tar.gz
rust-1e4686865efbe5c3a305708d3aceacc181081be8.zip
Allow multiple snippet edits in a `TextDocumentEdit`
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index 0801e988f5c..b66c9c943a1 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -57,8 +57,9 @@ export interface TextDocumentEdit {
 }
 ```
 
-When applying such code action or text edit, the editor should insert snippet, with tab stops and placeholder.
-At the moment, rust-analyzer guarantees that only a single edit will have `InsertTextFormat.Snippet`.
+When applying such code action or text edit, the editor should insert snippet, with tab stops and placeholders.
+At the moment, rust-analyzer guarantees that only a single `TextDocumentEdit` will have edits which can be `InsertTextFormat.Snippet`.
+Any additional `TextDocumentEdit`s will only have edits which are `InsertTextFormat.PlainText`.
 
 ### Example