aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-18 07:31:00 +0000
committerAleksey Kladov <[email protected]>2019-02-18 07:31:00 +0000
commit864fd5ee25ea7b379855284365eb199cc0fa9c07 (patch)
tree02a9e8fd4f1c096945ee134fcd5b2b856698e7de /crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap
parent8b95c0e0c22a67d486c08416175c79b99da5acd9 (diff)
More compact debug representation for completion
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.snap226
1 files changed, 78 insertions, 148 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 d3e53e4e8..bd22d546a 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,183 +1,113 @@
1--- 1---
2created: "2019-02-14T18:33:26.102469493Z" 2created: "2019-02-18T07:29:59.734401559Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_ide_api/src/completion/completion_item.rs 4source: crates/ra_ide_api/src/completion/completion_item.rs
5expression: kind_completions 5expression: kind_completions
6--- 6---
7[ 7[
8 CompletionItem { 8 CompletionItem {
9 completion_kind: Postfix,
10 label: "dbg", 9 label: "dbg",
11 kind: None,
12 detail: Some(
13 "dbg!(expr)"
14 ),
15 documentation: None,
16 lookup: None,
17 insert_text: Some(
18 "dbg!(bar)"
19 ),
20 insert_text_format: Snippet,
21 source_range: [76; 76), 10 source_range: [76; 76),
22 text_edit: Some( 11 detail: "dbg!(expr)",
23 TextEdit { 12 insert_text: "dbg!(bar)",
24 atoms: [ 13 insert_text_format: Snippet,
25 AtomTextEdit { 14 text_edit: TextEdit {
26 delete: [72; 76), 15 atoms: [
27 insert: "" 16 AtomTextEdit {
28 } 17 delete: [72; 76),
29 ] 18 insert: ""
30 } 19 }
31 ) 20 ]
21 }
32 }, 22 },
33 CompletionItem { 23 CompletionItem {
34 completion_kind: Postfix,
35 label: "if", 24 label: "if",
36 kind: None,
37 detail: Some(
38 "if expr {}"
39 ),
40 documentation: None,
41 lookup: None,
42 insert_text: Some(
43 "if bar {$0}"
44 ),
45 insert_text_format: Snippet,
46 source_range: [76; 76), 25 source_range: [76; 76),
47 text_edit: Some( 26 detail: "if expr {}",
48 TextEdit { 27 insert_text: "if bar {$0}",
49 atoms: [ 28 insert_text_format: Snippet,
50 AtomTextEdit { 29 text_edit: TextEdit {
51 delete: [72; 76), 30 atoms: [
52 insert: "" 31 AtomTextEdit {
53 } 32 delete: [72; 76),
54 ] 33 insert: ""
55 } 34 }
56 ) 35 ]
36 }
57 }, 37 },
58 CompletionItem { 38 CompletionItem {
59 completion_kind: Postfix,
60 label: "match", 39 label: "match",
61 kind: None,
62 detail: Some(
63 "match expr {}"
64 ),
65 documentation: None,
66 lookup: None,
67 insert_text: Some(
68 "match bar {\n${1:_} => {$0\\},\n}"
69 ),
70 insert_text_format: Snippet,
71 source_range: [76; 76), 40 source_range: [76; 76),
72 text_edit: Some( 41 detail: "match expr {}",
73 TextEdit { 42 insert_text: "match bar {\n${1:_} => {$0\\},\n}",
74 atoms: [ 43 insert_text_format: Snippet,
75 AtomTextEdit { 44 text_edit: TextEdit {
76 delete: [72; 76), 45 atoms: [
77 insert: "" 46 AtomTextEdit {
78 } 47 delete: [72; 76),
79 ] 48 insert: ""
80 } 49 }
81 ) 50 ]
51 }
82 }, 52 },
83 CompletionItem { 53 CompletionItem {
84 completion_kind: Postfix,
85 label: "not", 54 label: "not",
86 kind: None,
87 detail: Some(
88 "!expr"
89 ),
90 documentation: None,
91 lookup: None,
92 insert_text: Some(
93 "!bar"
94 ),
95 insert_text_format: Snippet,
96 source_range: [76; 76), 55 source_range: [76; 76),
97 text_edit: Some( 56 detail: "!expr",
98 TextEdit { 57 insert_text: "!bar",
99 atoms: [ 58 insert_text_format: Snippet,
100 AtomTextEdit { 59 text_edit: TextEdit {
101 delete: [72; 76), 60 atoms: [
102 insert: "" 61 AtomTextEdit {
103 } 62 delete: [72; 76),
104 ] 63 insert: ""
105 } 64 }
106 ) 65 ]
66 }
107 }, 67 },
108 CompletionItem { 68 CompletionItem {
109 completion_kind: Postfix,
110 label: "ref", 69 label: "ref",
111 kind: None,
112 detail: Some(
113 "&expr"
114 ),
115 documentation: None,
116 lookup: None,
117 insert_text: Some(
118 "&bar"
119 ),
120 insert_text_format: Snippet,
121 source_range: [76; 76), 70 source_range: [76; 76),
122 text_edit: Some( 71 detail: "&expr",
123 TextEdit { 72 insert_text: "&bar",
124 atoms: [ 73 insert_text_format: Snippet,
125 AtomTextEdit { 74 text_edit: TextEdit {
126 delete: [72; 76), 75 atoms: [
127 insert: "" 76 AtomTextEdit {
128 } 77 delete: [72; 76),
129 ] 78 insert: ""
130 } 79 }
131 ) 80 ]
81 }
132 }, 82 },
133 CompletionItem { 83 CompletionItem {
134 completion_kind: Postfix,
135 label: "refm", 84 label: "refm",
136 kind: None,
137 detail: Some(
138 "&mut expr"
139 ),
140 documentation: None,
141 lookup: None,
142 insert_text: Some(
143 "&mut bar"
144 ),
145 insert_text_format: Snippet,
146 source_range: [76; 76), 85 source_range: [76; 76),
147 text_edit: Some( 86 detail: "&mut expr",
148 TextEdit { 87 insert_text: "&mut bar",
149 atoms: [ 88 insert_text_format: Snippet,
150 AtomTextEdit { 89 text_edit: TextEdit {
151 delete: [72; 76), 90 atoms: [
152 insert: "" 91 AtomTextEdit {
153 } 92 delete: [72; 76),
154 ] 93 insert: ""
155 } 94 }
156 ) 95 ]
96 }
157 }, 97 },
158 CompletionItem { 98 CompletionItem {
159 completion_kind: Postfix,
160 label: "while", 99 label: "while",
161 kind: None,
162 detail: Some(
163 "while expr {}"
164 ),
165 documentation: None,
166 lookup: None,
167 insert_text: Some(
168 "while bar {\n$0\n}"
169 ),
170 insert_text_format: Snippet,
171 source_range: [76; 76), 100 source_range: [76; 76),
172 text_edit: Some( 101 detail: "while expr {}",
173 TextEdit { 102 insert_text: "while bar {\n$0\n}",
174 atoms: [ 103 insert_text_format: Snippet,
175 AtomTextEdit { 104 text_edit: TextEdit {
176 delete: [72; 76), 105 atoms: [
177 insert: "" 106 AtomTextEdit {
178 } 107 delete: [72; 76),
179 ] 108 insert: ""
180 } 109 }
181 ) 110 ]
111 }
182 } 112 }
183] 113]