fix postfix match indent

This commit is contained in:
Aleksey Kladov 2019-04-22 10:38:39 +03:00
parent 5b2fd86d25
commit b811922a53
2 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
ctx, ctx,
"match", "match",
"match expr {}", "match expr {}",
&format!("match {} {{\n${{1:_}} => {{$0\\}},\n}}", receiver_text), &format!("match {} {{\n ${{1:_}} => {{$0\\}},\n}}", receiver_text),
) )
.add_to(acc); .add_to(acc);
postfix_snippet( postfix_snippet(

View file

@ -1,6 +1,6 @@
--- ---
created: "2019-02-18T09:22:24.127119709Z" created: "2019-04-22T07:37:13.981826301Z"
creator: insta@0.6.2 creator: insta@0.7.4
source: crates/ra_ide_api/src/completion/completion_item.rs source: crates/ra_ide_api/src/completion/completion_item.rs
expression: kind_completions expression: kind_completions
--- ---
@ -23,7 +23,7 @@ expression: kind_completions
label: "match", label: "match",
source_range: [76; 76), source_range: [76; 76),
delete: [72; 76), delete: [72; 76),
insert: "match bar {\n${1:_} => {$0\\},\n}", insert: "match bar {\n ${1:_} => {$0\\},\n}",
detail: "match expr {}" detail: "match expr {}"
}, },
CompletionItem { CompletionItem {