about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs/dev
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-11-21 18:23:31 +0100
committerRalf Jung <post@ralfj.de>2023-11-21 18:23:31 +0100
commiteed24ac572eba9b6505525e08cc4b7b91c34e428 (patch)
tree40838be4cb9cfa74ceb9d39ed04c581d94ca4fa7 /src/tools/rust-analyzer/docs/dev
parent9007cc484bdff639d3c8ab1304e6dd4257589f82 (diff)
parent329d015014a314f6131214d83d10b9d3b17d387d (diff)
downloadrust-eed24ac572eba9b6505525e08cc4b7b91c34e428.tar.gz
rust-eed24ac572eba9b6505525e08cc4b7b91c34e428.zip
Merge from rustc
Diffstat (limited to 'src/tools/rust-analyzer/docs/dev')
-rw-r--r--src/tools/rust-analyzer/docs/dev/lsp-extensions.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md
index 0801e988f5c..b66c9c943a1 100644
--- a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md
+++ b/src/tools/rust-analyzer/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