diff options
| author | Ralf Jung <post@ralfj.de> | 2023-11-21 18:23:31 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-11-21 18:23:31 +0100 |
| commit | eed24ac572eba9b6505525e08cc4b7b91c34e428 (patch) | |
| tree | 40838be4cb9cfa74ceb9d39ed04c581d94ca4fa7 /src/tools/rust-analyzer/docs/dev | |
| parent | 9007cc484bdff639d3c8ab1304e6dd4257589f82 (diff) | |
| parent | 329d015014a314f6131214d83d10b9d3b17d387d (diff) | |
| download | rust-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.md | 5 |
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 |
