mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fix postfix match indent
This commit is contained in:
parent
5b2fd86d25
commit
b811922a53
2 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
ctx,
|
||||
"match",
|
||||
"match expr {}",
|
||||
&format!("match {} {{\n${{1:_}} => {{$0\\}},\n}}", receiver_text),
|
||||
&format!("match {} {{\n ${{1:_}} => {{$0\\}},\n}}", receiver_text),
|
||||
)
|
||||
.add_to(acc);
|
||||
postfix_snippet(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
created: "2019-02-18T09:22:24.127119709Z"
|
||||
creator: insta@0.6.2
|
||||
created: "2019-04-22T07:37:13.981826301Z"
|
||||
creator: insta@0.7.4
|
||||
source: crates/ra_ide_api/src/completion/completion_item.rs
|
||||
expression: kind_completions
|
||||
---
|
||||
|
@ -23,7 +23,7 @@ expression: kind_completions
|
|||
label: "match",
|
||||
source_range: [76; 76),
|
||||
delete: [72; 76),
|
||||
insert: "match bar {\n${1:_} => {$0\\},\n}",
|
||||
insert: "match bar {\n ${1:_} => {$0\\},\n}",
|
||||
detail: "match expr {}"
|
||||
},
|
||||
CompletionItem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue