diff options
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 | 74 |
1 files changed, 61 insertions, 13 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 index 1295355a2..42f736d74 100644 --- 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 | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T07:29:59.641375216Z" | 2 | created: "2019-02-18T09:10:51.988658363Z" |
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,44 +8,92 @@ expression: kind_completions | |||
8 | CompletionItem { | 8 | CompletionItem { |
9 | label: "break", | 9 | label: "break", |
10 | source_range: [106; 108), | 10 | source_range: [106; 108), |
11 | text_edit: TextEdit { | ||
12 | atoms: [ | ||
13 | AtomTextEdit { | ||
14 | delete: [106; 108), | ||
15 | insert: "break" | ||
16 | } | ||
17 | ] | ||
18 | }, | ||
11 | kind: Keyword | 19 | kind: Keyword |
12 | }, | 20 | }, |
13 | CompletionItem { | 21 | CompletionItem { |
14 | label: "continue", | 22 | label: "continue", |
15 | source_range: [106; 108), | 23 | source_range: [106; 108), |
24 | text_edit: TextEdit { | ||
25 | atoms: [ | ||
26 | AtomTextEdit { | ||
27 | delete: [106; 108), | ||
28 | insert: "continue" | ||
29 | } | ||
30 | ] | ||
31 | }, | ||
16 | kind: Keyword | 32 | kind: Keyword |
17 | }, | 33 | }, |
18 | CompletionItem { | 34 | CompletionItem { |
19 | label: "if", | 35 | label: "if", |
20 | source_range: [106; 108), | 36 | source_range: [106; 108), |
21 | kind: Keyword, | 37 | text_edit: TextEdit { |
22 | insert_text: "if $0 {}", | 38 | atoms: [ |
23 | insert_text_format: Snippet | 39 | AtomTextEdit { |
40 | delete: [106; 108), | ||
41 | insert: "if $0 {}" | ||
42 | } | ||
43 | ] | ||
44 | }, | ||
45 | kind: Keyword | ||
24 | }, | 46 | }, |
25 | CompletionItem { | 47 | CompletionItem { |
26 | label: "loop", | 48 | label: "loop", |
27 | source_range: [106; 108), | 49 | source_range: [106; 108), |
28 | kind: Keyword, | 50 | text_edit: TextEdit { |
29 | insert_text: "loop {$0}", | 51 | atoms: [ |
30 | insert_text_format: Snippet | 52 | AtomTextEdit { |
53 | delete: [106; 108), | ||
54 | insert: "loop {$0}" | ||
55 | } | ||
56 | ] | ||
57 | }, | ||
58 | kind: Keyword | ||
31 | }, | 59 | }, |
32 | CompletionItem { | 60 | CompletionItem { |
33 | label: "match", | 61 | label: "match", |
34 | source_range: [106; 108), | 62 | source_range: [106; 108), |
35 | kind: Keyword, | 63 | text_edit: TextEdit { |
36 | insert_text: "match $0 {}", | 64 | atoms: [ |
37 | insert_text_format: Snippet | 65 | AtomTextEdit { |
66 | delete: [106; 108), | ||
67 | insert: "match $0 {}" | ||
68 | } | ||
69 | ] | ||
70 | }, | ||
71 | kind: Keyword | ||
38 | }, | 72 | }, |
39 | CompletionItem { | 73 | CompletionItem { |
40 | label: "return", | 74 | label: "return", |
41 | source_range: [106; 108), | 75 | source_range: [106; 108), |
76 | text_edit: TextEdit { | ||
77 | atoms: [ | ||
78 | AtomTextEdit { | ||
79 | delete: [106; 108), | ||
80 | insert: "return" | ||
81 | } | ||
82 | ] | ||
83 | }, | ||
42 | kind: Keyword | 84 | kind: Keyword |
43 | }, | 85 | }, |
44 | CompletionItem { | 86 | CompletionItem { |
45 | label: "while", | 87 | label: "while", |
46 | source_range: [106; 108), | 88 | source_range: [106; 108), |
47 | kind: Keyword, | 89 | text_edit: TextEdit { |
48 | insert_text: "while $0 {}", | 90 | atoms: [ |
49 | insert_text_format: Snippet | 91 | AtomTextEdit { |
92 | delete: [106; 108), | ||
93 | insert: "while $0 {}" | ||
94 | } | ||
95 | ] | ||
96 | }, | ||
97 | kind: Keyword | ||
50 | } | 98 | } |
51 | ] | 99 | ] |