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__bindings_from_if_let.snap | |
parent | 79f35cc6992d18e97b0bb9e309a2dc37f6f286e8 (diff) |
Don't use additional_text_edits API internally
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_if_let.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_if_let.snap | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_if_let.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_if_let.snap index e6c1a936a..badaed8fe 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_if_let.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_if_let.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T07:29:59.739513594Z" | 2 | created: "2019-02-18T09:10:52.092577354Z" |
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,19 +8,41 @@ expression: kind_completions | |||
8 | CompletionItem { | 8 | CompletionItem { |
9 | label: "a", | 9 | label: "a", |
10 | source_range: [214; 214), | 10 | source_range: [214; 214), |
11 | text_edit: TextEdit { | ||
12 | atoms: [ | ||
13 | AtomTextEdit { | ||
14 | delete: [214; 214), | ||
15 | insert: "a" | ||
16 | } | ||
17 | ] | ||
18 | }, | ||
11 | kind: Binding | 19 | kind: Binding |
12 | }, | 20 | }, |
13 | CompletionItem { | 21 | CompletionItem { |
14 | label: "b", | 22 | label: "b", |
15 | source_range: [214; 214), | 23 | source_range: [214; 214), |
24 | text_edit: TextEdit { | ||
25 | atoms: [ | ||
26 | AtomTextEdit { | ||
27 | delete: [214; 214), | ||
28 | insert: "b" | ||
29 | } | ||
30 | ] | ||
31 | }, | ||
16 | kind: Binding | 32 | kind: Binding |
17 | }, | 33 | }, |
18 | CompletionItem { | 34 | CompletionItem { |
19 | label: "quux", | 35 | label: "quux", |
20 | source_range: [214; 214), | 36 | source_range: [214; 214), |
37 | text_edit: TextEdit { | ||
38 | atoms: [ | ||
39 | AtomTextEdit { | ||
40 | delete: [214; 214), | ||
41 | insert: "quux()$0" | ||
42 | } | ||
43 | ] | ||
44 | }, | ||
21 | kind: Function, | 45 | kind: Function, |
22 | detail: "fn quux()", | 46 | detail: "fn quux()" |
23 | insert_text: "quux()$0", | ||
24 | insert_text_format: Snippet | ||
25 | } | 47 | } |
26 | ] | 48 | ] |