diff options
author | gfreezy <[email protected]> | 2019-01-19 14:02:50 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2019-01-19 14:02:50 +0000 |
commit | d08e81cdd818dd3378c292767e15a38e6bbc6f6c (patch) | |
tree | e07b3363f21912ca7aaca4ae1dce482c0bcd6f85 /crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap | |
parent | fa43ef30f4f96fc8e4ea1f9c4492bcb07b3335ca (diff) |
refactor completions to use TextEdit instead of InsertText
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap new file mode 100644 index 000000000..26c54018e --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap | |||
@@ -0,0 +1,125 @@ | |||
1 | Created: 2019-01-19T13:42:17.821881+00:00 | ||
2 | Creator: [email protected] | ||
3 | Source: crates/ra_ide_api/src/completion/completion_item.rs | ||
4 | |||
5 | [ | ||
6 | CompletionItem { | ||
7 | completion_kind: Keyword, | ||
8 | label: "if", | ||
9 | kind: Some( | ||
10 | Keyword | ||
11 | ), | ||
12 | detail: None, | ||
13 | lookup: None, | ||
14 | insert_text_format: Snippet, | ||
15 | text_edit: Some( | ||
16 | AtomTextEdit { | ||
17 | delete: [106; 108), | ||
18 | insert: "if $0 {}" | ||
19 | } | ||
20 | ), | ||
21 | additional_text_edits: None | ||
22 | }, | ||
23 | CompletionItem { | ||
24 | completion_kind: Keyword, | ||
25 | label: "match", | ||
26 | kind: Some( | ||
27 | Keyword | ||
28 | ), | ||
29 | detail: None, | ||
30 | lookup: None, | ||
31 | insert_text_format: Snippet, | ||
32 | text_edit: Some( | ||
33 | AtomTextEdit { | ||
34 | delete: [106; 108), | ||
35 | insert: "match $0 {}" | ||
36 | } | ||
37 | ), | ||
38 | additional_text_edits: None | ||
39 | }, | ||
40 | CompletionItem { | ||
41 | completion_kind: Keyword, | ||
42 | label: "while", | ||
43 | kind: Some( | ||
44 | Keyword | ||
45 | ), | ||
46 | detail: None, | ||
47 | lookup: None, | ||
48 | insert_text_format: Snippet, | ||
49 | text_edit: Some( | ||
50 | AtomTextEdit { | ||
51 | delete: [106; 108), | ||
52 | insert: "while $0 {}" | ||
53 | } | ||
54 | ), | ||
55 | additional_text_edits: None | ||
56 | }, | ||
57 | CompletionItem { | ||
58 | completion_kind: Keyword, | ||
59 | label: "loop", | ||
60 | kind: Some( | ||
61 | Keyword | ||
62 | ), | ||
63 | detail: None, | ||
64 | lookup: None, | ||
65 | insert_text_format: Snippet, | ||
66 | text_edit: Some( | ||
67 | AtomTextEdit { | ||
68 | delete: [106; 108), | ||
69 | insert: "loop {$0}" | ||
70 | } | ||
71 | ), | ||
72 | additional_text_edits: None | ||
73 | }, | ||
74 | CompletionItem { | ||
75 | completion_kind: Keyword, | ||
76 | label: "continue", | ||
77 | kind: Some( | ||
78 | Keyword | ||
79 | ), | ||
80 | detail: None, | ||
81 | lookup: None, | ||
82 | insert_text_format: Snippet, | ||
83 | text_edit: Some( | ||
84 | AtomTextEdit { | ||
85 | delete: [106; 108), | ||
86 | insert: "continue" | ||
87 | } | ||
88 | ), | ||
89 | additional_text_edits: None | ||
90 | }, | ||
91 | CompletionItem { | ||
92 | completion_kind: Keyword, | ||
93 | label: "break", | ||
94 | kind: Some( | ||
95 | Keyword | ||
96 | ), | ||
97 | detail: None, | ||
98 | lookup: None, | ||
99 | insert_text_format: Snippet, | ||
100 | text_edit: Some( | ||
101 | AtomTextEdit { | ||
102 | delete: [106; 108), | ||
103 | insert: "break" | ||
104 | } | ||
105 | ), | ||
106 | additional_text_edits: None | ||
107 | }, | ||
108 | CompletionItem { | ||
109 | completion_kind: Keyword, | ||
110 | label: "return", | ||
111 | kind: Some( | ||
112 | Keyword | ||
113 | ), | ||
114 | detail: None, | ||
115 | lookup: None, | ||
116 | insert_text_format: Snippet, | ||
117 | text_edit: Some( | ||
118 | AtomTextEdit { | ||
119 | delete: [106; 108), | ||
120 | insert: "return" | ||
121 | } | ||
122 | ), | ||
123 | additional_text_edits: None | ||
124 | } | ||
125 | ] | ||