mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Allow multiple snippet edits in a TextDocumentEdit
This commit is contained in:
parent
3b7c7f97e4
commit
1e4686865e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue