about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-19 10:58:44 +0000
committerbors <bors@rust-lang.org>2024-02-19 10:58:44 +0000
commit60982dc8fc2e7862d68bb2b3e3d5d4fff8052de9 (patch)
treeaf6c9908cd9319dc5713ead866923052b0d2cc26 /tests/debuginfo/enum-thinlto.rs
parente7c9a76cb29dd3931e35d5a86b507e4224025b22 (diff)
parentbcf14e27ce9d4331f4685fb759cf135a76ad119c (diff)
downloadrust-60982dc8fc2e7862d68bb2b3e3d5d4fff8052de9.tar.gz
rust-60982dc8fc2e7862d68bb2b3e3d5d4fff8052de9.zip
Auto merge of #16475 - DropDemBits:native-vscode-snippet-text-edit, r=Veykril
feat: Support multiple tab stops for completions in VSCode

Uses the native VSCode support for `SnippetTextEdit`s. Fixes #13229 and fixes #8531.

https://github.com/rust-lang/rust-analyzer/assets/13354275/a2d2c033-bb30-4f34-92ca-bf3f4f744cdc

This is done in a slightly hacky way, as `vscode-languageclient` can't convert RA's `SnippetTextEdit`s into vscode `SnippetTextEdit`s and will appear to use a [different format](https://github.com/microsoft/vscode-languageserver-node/blob/295aaa393fda8ecce110c38880a00466b9320e63/types/src/main.ts#L1501-L1516) in the future.

---

~~Marked as draft since as-is, this will cause completions to double-indent any multi-line code generated.~~
**Update:** This also fixes up edits so that any multi-line code won't be double-indented.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions