diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap | 100 |
1 files changed, 22 insertions, 78 deletions
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 bd22d546a..2b5435f0c 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,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T07:29:59.734401559Z" | 2 | created: "2019-02-18T09:22:24.127119709Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/completion/completion_item.rs | 4 | source: crates/ra_ide_api/src/completion/completion_item.rs |
5 | expression: kind_completions | 5 | expression: kind_completions |
@@ -8,106 +8,50 @@ expression: kind_completions | |||
8 | CompletionItem { | 8 | CompletionItem { |
9 | label: "dbg", | 9 | label: "dbg", |
10 | source_range: [76; 76), | 10 | source_range: [76; 76), |
11 | detail: "dbg!(expr)", | 11 | delete: [72; 76), |
12 | insert_text: "dbg!(bar)", | 12 | insert: "dbg!(bar)", |
13 | insert_text_format: Snippet, | 13 | detail: "dbg!(expr)" |
14 | text_edit: TextEdit { | ||
15 | atoms: [ | ||
16 | AtomTextEdit { | ||
17 | delete: [72; 76), | ||
18 | insert: "" | ||
19 | } | ||
20 | ] | ||
21 | } | ||
22 | }, | 14 | }, |
23 | CompletionItem { | 15 | CompletionItem { |
24 | label: "if", | 16 | label: "if", |
25 | source_range: [76; 76), | 17 | source_range: [76; 76), |
26 | detail: "if expr {}", | 18 | delete: [72; 76), |
27 | insert_text: "if bar {$0}", | 19 | insert: "if bar {$0}", |
28 | insert_text_format: Snippet, | 20 | detail: "if expr {}" |
29 | text_edit: TextEdit { | ||
30 | atoms: [ | ||
31 | AtomTextEdit { | ||
32 | delete: [72; 76), | ||
33 | insert: "" | ||
34 | } | ||
35 | ] | ||
36 | } | ||
37 | }, | 21 | }, |
38 | CompletionItem { | 22 | CompletionItem { |
39 | label: "match", | 23 | label: "match", |
40 | source_range: [76; 76), | 24 | source_range: [76; 76), |
41 | detail: "match expr {}", | 25 | delete: [72; 76), |
42 | insert_text: "match bar {\n${1:_} => {$0\\},\n}", | 26 | insert: "match bar {\n${1:_} => {$0\\},\n}", |
43 | insert_text_format: Snippet, | 27 | detail: "match expr {}" |
44 | text_edit: TextEdit { | ||
45 | atoms: [ | ||
46 | AtomTextEdit { | ||
47 | delete: [72; 76), | ||
48 | insert: "" | ||
49 | } | ||
50 | ] | ||
51 | } | ||
52 | }, | 28 | }, |
53 | CompletionItem { | 29 | CompletionItem { |
54 | label: "not", | 30 | label: "not", |
55 | source_range: [76; 76), | 31 | source_range: [76; 76), |
56 | detail: "!expr", | 32 | delete: [72; 76), |
57 | insert_text: "!bar", | 33 | insert: "!bar", |
58 | insert_text_format: Snippet, | 34 | detail: "!expr" |
59 | text_edit: TextEdit { | ||
60 | atoms: [ | ||
61 | AtomTextEdit { | ||
62 | delete: [72; 76), | ||
63 | insert: "" | ||
64 | } | ||
65 | ] | ||
66 | } | ||
67 | }, | 35 | }, |
68 | CompletionItem { | 36 | CompletionItem { |
69 | label: "ref", | 37 | label: "ref", |
70 | source_range: [76; 76), | 38 | source_range: [76; 76), |
71 | detail: "&expr", | 39 | delete: [72; 76), |
72 | insert_text: "&bar", | 40 | insert: "&bar", |
73 | insert_text_format: Snippet, | 41 | detail: "&expr" |
74 | text_edit: TextEdit { | ||
75 | atoms: [ | ||
76 | AtomTextEdit { | ||
77 | delete: [72; 76), | ||
78 | insert: "" | ||
79 | } | ||
80 | ] | ||
81 | } | ||
82 | }, | 42 | }, |
83 | CompletionItem { | 43 | CompletionItem { |
84 | label: "refm", | 44 | label: "refm", |
85 | source_range: [76; 76), | 45 | source_range: [76; 76), |
86 | detail: "&mut expr", | 46 | delete: [72; 76), |
87 | insert_text: "&mut bar", | 47 | insert: "&mut bar", |
88 | insert_text_format: Snippet, | 48 | detail: "&mut expr" |
89 | text_edit: TextEdit { | ||
90 | atoms: [ | ||
91 | AtomTextEdit { | ||
92 | delete: [72; 76), | ||
93 | insert: "" | ||
94 | } | ||
95 | ] | ||
96 | } | ||
97 | }, | 49 | }, |
98 | CompletionItem { | 50 | CompletionItem { |
99 | label: "while", | 51 | label: "while", |
100 | source_range: [76; 76), | 52 | source_range: [76; 76), |
101 | detail: "while expr {}", | 53 | delete: [72; 76), |
102 | insert_text: "while bar {\n$0\n}", | 54 | insert: "while bar {\n$0\n}", |
103 | insert_text_format: Snippet, | 55 | detail: "while expr {}" |
104 | text_edit: TextEdit { | ||
105 | atoms: [ | ||
106 | AtomTextEdit { | ||
107 | delete: [72; 76), | ||
108 | insert: "" | ||
109 | } | ||
110 | ] | ||
111 | } | ||
112 | } | 56 | } |
113 | ] | 57 | ] |