diff options
| author | bors <bors@rust-lang.org> | 2023-11-12 15:20:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-12 15:20:42 +0000 |
| commit | 92d9ca7d647f44094377cd4fb6d6a79c3bfa003e (patch) | |
| tree | 0555af5347eb5432011265a0800757381ad1e39d /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 8bfe0aaba904ac26219ce362283f05b5a0db8ddc (diff) | |
| parent | 1e4686865efbe5c3a305708d3aceacc181081be8 (diff) | |
| download | rust-92d9ca7d647f44094377cd4fb6d6a79c3bfa003e.tar.gz rust-92d9ca7d647f44094377cd4fb6d6a79c3bfa003e.zip | |
Auto merge of #15876 - DropDemBits:lsp-ext-multiple-snippet-textedit, r=Veykril
minor: Allow multiple snippet edits in a `TextDocumentEdit` Explicitly[^1] allow a single `TextDocumentEdit` to have multiple `SnippetTextEdit`s. This allows things like renaming extracted variables and functions without having to go through a separate rename step. For an example of what this looks like, see the video in [this comment](https://github.com/microsoft/vscode/issues/145374#issuecomment-1177341711). The behavior described here lines up with [what VSCode does](https://github.com/microsoft/vscode/blob/bdc113ffe148a92d0e1a8ec34b12c44ea0b73f29/src/vscode-dts/vscode.d.ts#L3728-L3731), and presumably what the eventual LSP behavior will be. [^1]: This was technically the case before #15269, a single `TextDocumentEdit` always had multiple edits which were `InsertTextFormat.Snippet` as all of the edits were marked as being snippets, even if there weren't any tab stops or placeholders.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
