Skip to content

Commit 1e46868

Browse files
committed
Allow multiple snippet edits in a TextDocumentEdit
1 parent 3b7c7f9 commit 1e46868

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/dev/lsp-extensions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ export interface TextDocumentEdit {
5757
}
5858
```
5959

60-
When applying such code action or text edit, the editor should insert snippet, with tab stops and placeholder.
61-
At the moment, rust-analyzer guarantees that only a single edit will have `InsertTextFormat.Snippet`.
60+
When applying such code action or text edit, the editor should insert snippet, with tab stops and placeholders.
61+
At the moment, rust-analyzer guarantees that only a single `TextDocumentEdit` will have edits which can be `InsertTextFormat.Snippet`.
62+
Any additional `TextDocumentEdit`s will only have edits which are `InsertTextFormat.PlainText`.
6263

6364
### Example
6465

0 commit comments

Comments
 (0)