about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs/dev
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2023-11-16 22:27:35 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2023-11-16 22:27:35 +0200
commit949870c68d508550891bd5e6fdaf2a12e432a649 (patch)
treede73e69f94e3dd4edc9fcd87a6b73afd70f3b188 /src/tools/rust-analyzer/docs/dev
parent0ea7ddcc35a2fcaa5da8a7dcfc118c9fb4a63b95 (diff)
parent141fc695dca1df7cfc3c9803972ec19bb178dcbc (diff)
downloadrust-949870c68d508550891bd5e6fdaf2a12e432a649.tar.gz
rust-949870c68d508550891bd5e6fdaf2a12e432a649.zip
Merge commit '141fc695dca1df7cfc3c9803972ec19bb178dcbc' into sync-from-ra
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