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 | 72 |
1 files changed, 15 insertions, 57 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 fcca19b77..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-18T09:10:52.087222569Z" | 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,92 +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 | text_edit: TextEdit { | 11 | delete: [72; 76), |
12 | atoms: [ | 12 | insert: "dbg!(bar)", |
13 | AtomTextEdit { | ||
14 | delete: [72; 76), | ||
15 | insert: "dbg!(bar)" | ||
16 | } | ||
17 | ] | ||
18 | }, | ||
19 | detail: "dbg!(expr)" | 13 | detail: "dbg!(expr)" |
20 | }, | 14 | }, |
21 | CompletionItem { | 15 | CompletionItem { |
22 | label: "if", | 16 | label: "if", |
23 | source_range: [76; 76), | 17 | source_range: [76; 76), |
24 | text_edit: TextEdit { | 18 | delete: [72; 76), |
25 | atoms: [ | 19 | insert: "if bar {$0}", |
26 | AtomTextEdit { | ||
27 | delete: [72; 76), | ||
28 | insert: "if bar {$0}" | ||
29 | } | ||
30 | ] | ||
31 | }, | ||
32 | detail: "if expr {}" | 20 | detail: "if expr {}" |
33 | }, | 21 | }, |
34 | CompletionItem { | 22 | CompletionItem { |
35 | label: "match", | 23 | label: "match", |
36 | source_range: [76; 76), | 24 | source_range: [76; 76), |
37 | text_edit: TextEdit { | 25 | delete: [72; 76), |
38 | atoms: [ | 26 | insert: "match bar {\n${1:_} => {$0\\},\n}", |
39 | AtomTextEdit { | ||
40 | delete: [72; 76), | ||
41 | insert: "match bar {\n${1:_} => {$0\\},\n}" | ||
42 | } | ||
43 | ] | ||
44 | }, | ||
45 | detail: "match expr {}" | 27 | detail: "match expr {}" |
46 | }, | 28 | }, |
47 | CompletionItem { | 29 | CompletionItem { |
48 | label: "not", | 30 | label: "not", |
49 | source_range: [76; 76), | 31 | source_range: [76; 76), |
50 | text_edit: TextEdit { | 32 | delete: [72; 76), |
51 | atoms: [ | 33 | insert: "!bar", |
52 | AtomTextEdit { | ||
53 | delete: [72; 76), | ||
54 | insert: "!bar" | ||
55 | } | ||
56 | ] | ||
57 | }, | ||
58 | detail: "!expr" | 34 | detail: "!expr" |
59 | }, | 35 | }, |
60 | CompletionItem { | 36 | CompletionItem { |
61 | label: "ref", | 37 | label: "ref", |
62 | source_range: [76; 76), | 38 | source_range: [76; 76), |
63 | text_edit: TextEdit { | 39 | delete: [72; 76), |
64 | atoms: [ | 40 | insert: "&bar", |
65 | AtomTextEdit { | ||
66 | delete: [72; 76), | ||
67 | insert: "&bar" | ||
68 | } | ||
69 | ] | ||
70 | }, | ||
71 | detail: "&expr" | 41 | detail: "&expr" |
72 | }, | 42 | }, |
73 | CompletionItem { | 43 | CompletionItem { |
74 | label: "refm", | 44 | label: "refm", |
75 | source_range: [76; 76), | 45 | source_range: [76; 76), |
76 | text_edit: TextEdit { | 46 | delete: [72; 76), |
77 | atoms: [ | 47 | insert: "&mut bar", |
78 | AtomTextEdit { | ||
79 | delete: [72; 76), | ||
80 | insert: "&mut bar" | ||
81 | } | ||
82 | ] | ||
83 | }, | ||
84 | detail: "&mut expr" | 48 | detail: "&mut expr" |
85 | }, | 49 | }, |
86 | CompletionItem { | 50 | CompletionItem { |
87 | label: "while", | 51 | label: "while", |
88 | source_range: [76; 76), | 52 | source_range: [76; 76), |
89 | text_edit: TextEdit { | 53 | delete: [72; 76), |
90 | atoms: [ | 54 | insert: "while bar {\n$0\n}", |
91 | AtomTextEdit { | ||
92 | delete: [72; 76), | ||
93 | insert: "while bar {\n$0\n}" | ||
94 | } | ||
95 | ] | ||
96 | }, | ||
97 | detail: "while expr {}" | 55 | detail: "while expr {}" |
98 | } | 56 | } |
99 | ] | 57 | ] |