diff options
| author | DropDemBits <r3usrlnd@gmail.com> | 2023-11-11 22:10:21 -0500 |
|---|---|---|
| committer | DropDemBits <r3usrlnd@gmail.com> | 2023-11-11 22:12:49 -0500 |
| commit | 1e4686865efbe5c3a305708d3aceacc181081be8 (patch) | |
| tree | 3823b223cd72aa4b7af356a1b4f73a68ec861e0a /docs/dev | |
| parent | 3b7c7f97e4a7bb253a8d398ee4f8346f6cf2817b (diff) | |
| download | rust-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.md | 5 |
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 |
