diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__completes_prelude.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__completes_prelude.snap | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_prelude.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_prelude.snap index a22205dad..58515b86f 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_prelude.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__completes_prelude.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T07:29:59.774580359Z" | 2 | created: "2019-02-18T09:10:52.125606390Z" |
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: "Option", | 9 | label: "Option", |
10 | source_range: [18; 18), | 10 | source_range: [18; 18), |
11 | text_edit: TextEdit { | ||
12 | atoms: [ | ||
13 | AtomTextEdit { | ||
14 | delete: [18; 18), | ||
15 | insert: "Option" | ||
16 | } | ||
17 | ] | ||
18 | }, | ||
11 | kind: Struct | 19 | kind: Struct |
12 | }, | 20 | }, |
13 | CompletionItem { | 21 | CompletionItem { |
14 | label: "foo", | 22 | label: "foo", |
15 | source_range: [18; 18), | 23 | source_range: [18; 18), |
24 | text_edit: TextEdit { | ||
25 | atoms: [ | ||
26 | AtomTextEdit { | ||
27 | delete: [18; 18), | ||
28 | insert: "foo()$0" | ||
29 | } | ||
30 | ] | ||
31 | }, | ||
16 | kind: Function, | 32 | kind: Function, |
17 | detail: "fn foo()", | 33 | detail: "fn foo()" |
18 | insert_text: "foo()$0", | ||
19 | insert_text_format: Snippet | ||
20 | }, | 34 | }, |
21 | CompletionItem { | 35 | CompletionItem { |
22 | label: "std", | 36 | label: "std", |
23 | source_range: [18; 18), | 37 | source_range: [18; 18), |
38 | text_edit: TextEdit { | ||
39 | atoms: [ | ||
40 | AtomTextEdit { | ||
41 | delete: [18; 18), | ||
42 | insert: "std" | ||
43 | } | ||
44 | ] | ||
45 | }, | ||
24 | kind: Module | 46 | kind: Module |
25 | } | 47 | } |
26 | ] | 48 | ] |