From 434f1520df2965240809e37ea144c61f564c1c39 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 14 Feb 2019 20:13:39 +0300 Subject: add ref postfix template --- ...mpletion_works_for_trivial_path_expression.snap | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'crates/ra_ide_api/src/completion/snapshots') diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap index bc886ef0b..3e16c8e79 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap @@ -1,8 +1,8 @@ --- -created: "2019-02-03T11:38:42.897384636+00:00" -creator: insta@0.5.3 -expression: kind_completions +created: "2019-02-14T17:12:57.412523988Z" +creator: insta@0.6.2 source: crates/ra_ide_api/src/completion/completion_item.rs +expression: kind_completions --- [ CompletionItem { @@ -97,6 +97,29 @@ source: crates/ra_ide_api/src/completion/completion_item.rs } ) }, + CompletionItem { + completion_kind: Postfix, + label: "ref", + kind: None, + detail: None, + documentation: None, + lookup: None, + insert_text: Some( + "&bar" + ), + insert_text_format: Snippet, + source_range: [76; 76), + text_edit: Some( + TextEdit { + atoms: [ + AtomTextEdit { + delete: [72; 76), + insert: "" + } + ] + } + ) + }, CompletionItem { completion_kind: Postfix, label: "while", -- cgit v1.2.3