aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/snapshots
diff options
context:
space:
mode:
authorgfreezy <[email protected]>2019-01-21 05:19:51 +0000
committergfreezy <[email protected]>2019-01-21 05:19:51 +0000
commit5d1a63c6951d27a9f900d661e38735cc30bc8258 (patch)
treecea3f71b2c2919b6c923cdca0a5f3b50413e4291 /crates/ra_ide_api/src/completion/snapshots
parentf133702f723203a60a1b4dade51418261cdbc133 (diff)
postfix completion
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots')
-rw-r--r--crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion1.snap (renamed from crates/ra_ide_api/src/completion/snapshots/completion_item__completion_postfix.snap)50
-rw-r--r--crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion2.snap94
-rw-r--r--crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion3.snap94
3 files changed, 209 insertions, 29 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__completion_postfix.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion1.snap
index 60b5a7424..a0abd00cc 100644
--- a/crates/ra_ide_api/src/completion/snapshots/completion_item__completion_postfix.snap
+++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion1.snap
@@ -1,4 +1,4 @@
1Created: 2019-01-19T13:50:41.824939+00:00 1Created: 2019-01-21T05:12:32.815475+00:00
2Creator: [email protected] 2Creator: [email protected]
3Source: crates/ra_ide_api/src/completion/completion_item.rs 3Source: crates/ra_ide_api/src/completion/completion_item.rs
4 4
@@ -9,18 +9,16 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs
9 kind: None, 9 kind: None,
10 detail: None, 10 detail: None,
11 lookup: None, 11 lookup: None,
12 insert_text: Some(
13 "!not"
14 ),
12 insert_text_format: Snippet, 15 insert_text_format: Snippet,
16 source_range: [76; 76),
13 text_edit: Some( 17 text_edit: Some(
14 AtomTextEdit {
15 delete: [78; 78),
16 insert: "!not"
17 }
18 ),
19 additional_text_edits: Some(
20 TextEdit { 18 TextEdit {
21 atoms: [ 19 atoms: [
22 AtomTextEdit { 20 AtomTextEdit {
23 delete: [72; 78), 21 delete: [72; 76),
24 insert: "" 22 insert: ""
25 } 23 }
26 ] 24 ]
@@ -33,18 +31,16 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs
33 kind: None, 31 kind: None,
34 detail: None, 32 detail: None,
35 lookup: None, 33 lookup: None,
34 insert_text: Some(
35 "if bar {$0}"
36 ),
36 insert_text_format: Snippet, 37 insert_text_format: Snippet,
38 source_range: [76; 76),
37 text_edit: Some( 39 text_edit: Some(
38 AtomTextEdit {
39 delete: [78; 78),
40 insert: "if bar {$0}"
41 }
42 ),
43 additional_text_edits: Some(
44 TextEdit { 40 TextEdit {
45 atoms: [ 41 atoms: [
46 AtomTextEdit { 42 AtomTextEdit {
47 delete: [72; 78), 43 delete: [72; 76),
48 insert: "" 44 insert: ""
49 } 45 }
50 ] 46 ]
@@ -57,18 +53,16 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs
57 kind: None, 53 kind: None,
58 detail: None, 54 detail: None,
59 lookup: None, 55 lookup: None,
56 insert_text: Some(
57 "match bar {\n${1:_} => {$0\\},\n}"
58 ),
60 insert_text_format: Snippet, 59 insert_text_format: Snippet,
60 source_range: [76; 76),
61 text_edit: Some( 61 text_edit: Some(
62 AtomTextEdit {
63 delete: [78; 78),
64 insert: "match bar {\n${1:_} => {$0\\},\n}"
65 }
66 ),
67 additional_text_edits: Some(
68 TextEdit { 62 TextEdit {
69 atoms: [ 63 atoms: [
70 AtomTextEdit { 64 AtomTextEdit {
71 delete: [72; 78), 65 delete: [72; 76),
72 insert: "" 66 insert: ""
73 } 67 }
74 ] 68 ]
@@ -81,18 +75,16 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs
81 kind: None, 75 kind: None,
82 detail: None, 76 detail: None,
83 lookup: None, 77 lookup: None,
78 insert_text: Some(
79 "while bar {\n$0\n}"
80 ),
84 insert_text_format: Snippet, 81 insert_text_format: Snippet,
82 source_range: [76; 76),
85 text_edit: Some( 83 text_edit: Some(
86 AtomTextEdit {
87 delete: [78; 78),
88 insert: "while bar {\n$0\n}"
89 }
90 ),
91 additional_text_edits: Some(
92 TextEdit { 84 TextEdit {
93 atoms: [ 85 atoms: [
94 AtomTextEdit { 86 AtomTextEdit {
95 delete: [72; 78), 87 delete: [72; 76),
96 insert: "" 88 insert: ""
97 } 89 }
98 ] 90 ]
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion2.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion2.snap
new file mode 100644
index 000000000..3b3ee8d43
--- /dev/null
+++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion2.snap
@@ -0,0 +1,94 @@
1Created: 2019-01-21T05:12:32.816092+00:00
2Creator: [email protected]
3Source: crates/ra_ide_api/src/completion/completion_item.rs
4
5[
6 CompletionItem {
7 completion_kind: Postfix,
8 label: "not",
9 kind: None,
10 detail: None,
11 lookup: None,
12 insert_text: Some(
13 "!not"
14 ),
15 insert_text_format: Snippet,
16 source_range: [76; 77),
17 text_edit: Some(
18 TextEdit {
19 atoms: [
20 AtomTextEdit {
21 delete: [72; 76),
22 insert: ""
23 }
24 ]
25 }
26 )
27 },
28 CompletionItem {
29 completion_kind: Postfix,
30 label: "if",
31 kind: None,
32 detail: None,
33 lookup: None,
34 insert_text: Some(
35 "if bar {$0}"
36 ),
37 insert_text_format: Snippet,
38 source_range: [76; 77),
39 text_edit: Some(
40 TextEdit {
41 atoms: [
42 AtomTextEdit {
43 delete: [72; 76),
44 insert: ""
45 }
46 ]
47 }
48 )
49 },
50 CompletionItem {
51 completion_kind: Postfix,
52 label: "match",
53 kind: None,
54 detail: None,
55 lookup: None,
56 insert_text: Some(
57 "match bar {\n${1:_} => {$0\\},\n}"
58 ),
59 insert_text_format: Snippet,
60 source_range: [76; 77),
61 text_edit: Some(
62 TextEdit {
63 atoms: [
64 AtomTextEdit {
65 delete: [72; 76),
66 insert: ""
67 }
68 ]
69 }
70 )
71 },
72 CompletionItem {
73 completion_kind: Postfix,
74 label: "while",
75 kind: None,
76 detail: None,
77 lookup: None,
78 insert_text: Some(
79 "while bar {\n$0\n}"
80 ),
81 insert_text_format: Snippet,
82 source_range: [76; 77),
83 text_edit: Some(
84 TextEdit {
85 atoms: [
86 AtomTextEdit {
87 delete: [72; 76),
88 insert: ""
89 }
90 ]
91 }
92 )
93 }
94]
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion3.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion3.snap
new file mode 100644
index 000000000..31e8f008c
--- /dev/null
+++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion3.snap
@@ -0,0 +1,94 @@
1Created: 2019-01-21T05:19:05.341730+00:00
2Creator: [email protected]
3Source: crates/ra_ide_api/src/completion/completion_item.rs
4
5[
6 CompletionItem {
7 completion_kind: Postfix,
8 label: "not",
9 kind: None,
10 detail: None,
11 lookup: None,
12 insert_text: Some(
13 "!not"
14 ),
15 insert_text_format: Snippet,
16 source_range: [76; 78),
17 text_edit: Some(
18 TextEdit {
19 atoms: [
20 AtomTextEdit {
21 delete: [72; 76),
22 insert: ""
23 }
24 ]
25 }
26 )
27 },
28 CompletionItem {
29 completion_kind: Postfix,
30 label: "if",
31 kind: None,
32 detail: None,
33 lookup: None,
34 insert_text: Some(
35 "if bar {$0}"
36 ),
37 insert_text_format: Snippet,
38 source_range: [76; 78),
39 text_edit: Some(
40 TextEdit {
41 atoms: [
42 AtomTextEdit {
43 delete: [72; 76),
44 insert: ""
45 }
46 ]
47 }
48 )
49 },
50 CompletionItem {
51 completion_kind: Postfix,
52 label: "match",
53 kind: None,
54 detail: None,
55 lookup: None,
56 insert_text: Some(
57 "match bar {\n${1:_} => {$0\\},\n}"
58 ),
59 insert_text_format: Snippet,
60 source_range: [76; 78),
61 text_edit: Some(
62 TextEdit {
63 atoms: [
64 AtomTextEdit {
65 delete: [72; 76),
66 insert: ""
67 }
68 ]
69 }
70 )
71 },
72 CompletionItem {
73 completion_kind: Postfix,
74 label: "while",
75 kind: None,
76 detail: None,
77 lookup: None,
78 insert_text: Some(
79 "while bar {\n$0\n}"
80 ),
81 insert_text_format: Snippet,
82 source_range: [76; 78),
83 text_edit: Some(
84 TextEdit {
85 atoms: [
86 AtomTextEdit {
87 delete: [72; 76),
88 insert: ""
89 }
90 ]
91 }
92 )
93 }
94]