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