diff options
author | Aleksey Kladov <[email protected]> | 2019-02-18 09:05:16 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-18 09:24:20 +0000 |
commit | 92aa0f9c871a9308ea3db1b1c4b7e42d88348e30 (patch) | |
tree | ce785e530a547e3aede708b7725b4a95e666f45f /crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap | |
parent | 79f35cc6992d18e97b0bb9e309a2dc37f6f286e8 (diff) |
Don't use additional_text_edits API internally
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap | 86 |
1 files changed, 64 insertions, 22 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap index 5d62a6cb0..74f6fcd77 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_break_and_continue_in_loops1.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T07:29:59.630948152Z" | 2 | created: "2019-02-18T09:10:51.974241301Z" |
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,50 +8,92 @@ expression: kind_completions | |||
8 | CompletionItem { | 8 | CompletionItem { |
9 | label: "break", | 9 | label: "break", |
10 | source_range: [55; 55), | 10 | source_range: [55; 55), |
11 | kind: Keyword, | 11 | text_edit: TextEdit { |
12 | insert_text: "break;", | 12 | atoms: [ |
13 | insert_text_format: Snippet | 13 | AtomTextEdit { |
14 | delete: [55; 55), | ||
15 | insert: "break;" | ||
16 | } | ||
17 | ] | ||
18 | }, | ||
19 | kind: Keyword | ||
14 | }, | 20 | }, |
15 | CompletionItem { | 21 | CompletionItem { |
16 | label: "continue", | 22 | label: "continue", |
17 | source_range: [55; 55), | 23 | source_range: [55; 55), |
18 | kind: Keyword, | 24 | text_edit: TextEdit { |
19 | insert_text: "continue;", | 25 | atoms: [ |
20 | insert_text_format: Snippet | 26 | AtomTextEdit { |
27 | delete: [55; 55), | ||
28 | insert: "continue;" | ||
29 | } | ||
30 | ] | ||
31 | }, | ||
32 | kind: Keyword | ||
21 | }, | 33 | }, |
22 | CompletionItem { | 34 | CompletionItem { |
23 | label: "if", | 35 | label: "if", |
24 | source_range: [55; 55), | 36 | source_range: [55; 55), |
25 | kind: Keyword, | 37 | text_edit: TextEdit { |
26 | insert_text: "if $0 {}", | 38 | atoms: [ |
27 | insert_text_format: Snippet | 39 | AtomTextEdit { |
40 | delete: [55; 55), | ||
41 | insert: "if $0 {}" | ||
42 | } | ||
43 | ] | ||
44 | }, | ||
45 | kind: Keyword | ||
28 | }, | 46 | }, |
29 | CompletionItem { | 47 | CompletionItem { |
30 | label: "loop", | 48 | label: "loop", |
31 | source_range: [55; 55), | 49 | source_range: [55; 55), |
32 | kind: Keyword, | 50 | text_edit: TextEdit { |
33 | insert_text: "loop {$0}", | 51 | atoms: [ |
34 | insert_text_format: Snippet | 52 | AtomTextEdit { |
53 | delete: [55; 55), | ||
54 | insert: "loop {$0}" | ||
55 | } | ||
56 | ] | ||
57 | }, | ||
58 | kind: Keyword | ||
35 | }, | 59 | }, |
36 | CompletionItem { | 60 | CompletionItem { |
37 | label: "match", | 61 | label: "match", |
38 | source_range: [55; 55), | 62 | source_range: [55; 55), |
39 | kind: Keyword, | 63 | text_edit: TextEdit { |
40 | insert_text: "match $0 {}", | 64 | atoms: [ |
41 | insert_text_format: Snippet | 65 | AtomTextEdit { |
66 | delete: [55; 55), | ||
67 | insert: "match $0 {}" | ||
68 | } | ||
69 | ] | ||
70 | }, | ||
71 | kind: Keyword | ||
42 | }, | 72 | }, |
43 | CompletionItem { | 73 | CompletionItem { |
44 | label: "return", | 74 | label: "return", |
45 | source_range: [55; 55), | 75 | source_range: [55; 55), |
46 | kind: Keyword, | 76 | text_edit: TextEdit { |
47 | insert_text: "return $0;", | 77 | atoms: [ |
48 | insert_text_format: Snippet | 78 | AtomTextEdit { |
79 | delete: [55; 55), | ||
80 | insert: "return $0;" | ||
81 | } | ||
82 | ] | ||
83 | }, | ||
84 | kind: Keyword | ||
49 | }, | 85 | }, |
50 | CompletionItem { | 86 | CompletionItem { |
51 | label: "while", | 87 | label: "while", |
52 | source_range: [55; 55), | 88 | source_range: [55; 55), |
53 | kind: Keyword, | 89 | text_edit: TextEdit { |
54 | insert_text: "while $0 {}", | 90 | atoms: [ |
55 | insert_text_format: Snippet | 91 | AtomTextEdit { |
92 | delete: [55; 55), | ||
93 | insert: "while $0 {}" | ||
94 | } | ||
95 | ] | ||
96 | }, | ||
97 | kind: Keyword | ||
56 | } | 98 | } |
57 | ] | 99 | ] |