diff options
| author | bors <bors@rust-lang.org> | 2023-11-17 05:55:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-17 05:55:59 +0000 |
| commit | 00bfd6b2734d9c28a147bf237490995731781fdd (patch) | |
| tree | 413eb1147f9ce77f7ca93199e3b9bd872ac3ca06 /src/tools/rust-analyzer/docs/dev | |
| parent | 4770d910934dbc94616a681e9a50fd237a4ba5fc (diff) | |
| parent | 949870c68d508550891bd5e6fdaf2a12e432a649 (diff) | |
| download | rust-00bfd6b2734d9c28a147bf237490995731781fdd.tar.gz rust-00bfd6b2734d9c28a147bf237490995731781fdd.zip | |
Auto merge of #117985 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer` r? `@ghost` Out of band, but required for https://github.com/rust-lang/rust/pull/117981.
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 |
