diff options
author | Hoàng Đức Hiếu <[email protected]> | 2019-02-03 13:12:57 +0000 |
---|---|---|
committer | Hoàng Đức Hiếu <[email protected]> | 2019-02-03 13:12:57 +0000 |
commit | 9dd7ccf609745334ece375b5cf0918131365b7bd (patch) | |
tree | 998997041361209c39af91124b9b1aae0135a762 /crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap | |
parent | 1c5a63e3dbb53654dbc2fd10492d46f373192ab4 (diff) |
fold complete_postfix tests into one
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 | 123 |
1 files changed, 123 insertions, 0 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 new file mode 100644 index 000000000..bc886ef0b --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap | |||
@@ -0,0 +1,123 @@ | |||
1 | --- | ||
2 | created: "2019-02-03T11:38:42.897384636+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: kind_completions | ||
5 | source: crates/ra_ide_api/src/completion/completion_item.rs | ||
6 | --- | ||
7 | [ | ||
8 | CompletionItem { | ||
9 | completion_kind: Postfix, | ||
10 | label: "dbg", | ||
11 | kind: None, | ||
12 | detail: None, | ||
13 | documentation: None, | ||
14 | lookup: None, | ||
15 | insert_text: Some( | ||
16 | "dbg!(bar)" | ||
17 | ), | ||
18 | insert_text_format: Snippet, | ||
19 | source_range: [76; 76), | ||
20 | text_edit: Some( | ||
21 | TextEdit { | ||
22 | atoms: [ | ||
23 | AtomTextEdit { | ||
24 | delete: [72; 76), | ||
25 | insert: "" | ||
26 | } | ||
27 | ] | ||
28 | } | ||
29 | ) | ||
30 | }, | ||
31 | CompletionItem { | ||
32 | completion_kind: Postfix, | ||
33 | label: "if", | ||
34 | kind: None, | ||
35 | detail: None, | ||
36 | documentation: None, | ||
37 | lookup: None, | ||
38 | insert_text: Some( | ||
39 | "if bar {$0}" | ||
40 | ), | ||
41 | insert_text_format: Snippet, | ||
42 | source_range: [76; 76), | ||
43 | text_edit: Some( | ||
44 | TextEdit { | ||
45 | atoms: [ | ||
46 | AtomTextEdit { | ||
47 | delete: [72; 76), | ||
48 | insert: "" | ||
49 | } | ||
50 | ] | ||
51 | } | ||
52 | ) | ||
53 | }, | ||
54 | CompletionItem { | ||
55 | completion_kind: Postfix, | ||
56 | label: "match", | ||
57 | kind: None, | ||
58 | detail: None, | ||
59 | documentation: None, | ||
60 | lookup: None, | ||
61 | insert_text: Some( | ||
62 | "match bar {\n${1:_} => {$0\\},\n}" | ||
63 | ), | ||
64 | insert_text_format: Snippet, | ||
65 | source_range: [76; 76), | ||
66 | text_edit: Some( | ||
67 | TextEdit { | ||
68 | atoms: [ | ||
69 | AtomTextEdit { | ||
70 | delete: [72; 76), | ||
71 | insert: "" | ||
72 | } | ||
73 | ] | ||
74 | } | ||
75 | ) | ||
76 | }, | ||
77 | CompletionItem { | ||
78 | completion_kind: Postfix, | ||
79 | label: "not", | ||
80 | kind: None, | ||
81 | detail: None, | ||
82 | documentation: None, | ||
83 | lookup: None, | ||
84 | insert_text: Some( | ||
85 | "!bar" | ||
86 | ), | ||
87 | insert_text_format: Snippet, | ||
88 | source_range: [76; 76), | ||
89 | text_edit: Some( | ||
90 | TextEdit { | ||
91 | atoms: [ | ||
92 | AtomTextEdit { | ||
93 | delete: [72; 76), | ||
94 | insert: "" | ||
95 | } | ||
96 | ] | ||
97 | } | ||
98 | ) | ||
99 | }, | ||
100 | CompletionItem { | ||
101 | completion_kind: Postfix, | ||
102 | label: "while", | ||
103 | kind: None, | ||
104 | detail: None, | ||
105 | documentation: None, | ||
106 | lookup: None, | ||
107 | insert_text: Some( | ||
108 | "while bar {\n$0\n}" | ||
109 | ), | ||
110 | insert_text_format: Snippet, | ||
111 | source_range: [76; 76), | ||
112 | text_edit: Some( | ||
113 | TextEdit { | ||
114 | atoms: [ | ||
115 | AtomTextEdit { | ||
116 | delete: [72; 76), | ||
117 | insert: "" | ||
118 | } | ||
119 | ] | ||
120 | } | ||
121 | ) | ||
122 | } | ||
123 | ] | ||