diff options
author | Jeremy A. Kolb <[email protected]> | 2019-01-25 16:50:59 +0000 |
---|---|---|
committer | Jeremy A. Kolb <[email protected]> | 2019-01-25 16:50:59 +0000 |
commit | 9a97c10fdafd0148b0f198e28b9694876cd0d672 (patch) | |
tree | 8f0ce83834793b1541e9345906125ac79805c51c /crates/ra_ide_api/src/completion/snapshots | |
parent | 6df1f71b7d0db209978595dc9be496e7f2ef88ec (diff) |
EnumVariant details for completion
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant.snap (renamed from crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap) | 14 | ||||
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant_with_details.snap | 64 |
2 files changed, 73 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant.snap index e46f7807b..8c84439b2 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant.snap | |||
@@ -1,8 +1,8 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-23T23:49:43.278245900+00:00" | 2 | created: "2019-01-25T16:44:04.640545300+00:00" |
3 | creator: [email protected].1 | 3 | creator: [email protected].2 |
4 | expression: kind_completions | 4 | expression: kind_completions |
5 | source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs" | 5 | source: crates/ra_ide_api/src/completion/completion_item.rs |
6 | --- | 6 | --- |
7 | [ | 7 | [ |
8 | CompletionItem { | 8 | CompletionItem { |
@@ -11,7 +11,9 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs" | |||
11 | kind: Some( | 11 | kind: Some( |
12 | EnumVariant | 12 | EnumVariant |
13 | ), | 13 | ), |
14 | detail: None, | 14 | detail: Some( |
15 | "()" | ||
16 | ), | ||
15 | documentation: Some( | 17 | documentation: Some( |
16 | Documentation( | 18 | Documentation( |
17 | "Foo Variant" | 19 | "Foo Variant" |
@@ -29,7 +31,9 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs" | |||
29 | kind: Some( | 31 | kind: Some( |
30 | EnumVariant | 32 | EnumVariant |
31 | ), | 33 | ), |
32 | detail: None, | 34 | detail: Some( |
35 | "(i32)" | ||
36 | ), | ||
33 | documentation: Some( | 37 | documentation: Some( |
34 | Documentation( | 38 | Documentation( |
35 | "Bar Variant with i32" | 39 | "Bar Variant with i32" |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant_with_details.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant_with_details.snap new file mode 100644 index 000000000..384634517 --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__enum_variant_with_details.snap | |||
@@ -0,0 +1,64 @@ | |||
1 | --- | ||
2 | created: "2019-01-25T16:44:04.641542400+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: kind_completions | ||
5 | source: crates/ra_ide_api/src/completion/completion_item.rs | ||
6 | --- | ||
7 | [ | ||
8 | CompletionItem { | ||
9 | completion_kind: Reference, | ||
10 | label: "Foo", | ||
11 | kind: Some( | ||
12 | EnumVariant | ||
13 | ), | ||
14 | detail: Some( | ||
15 | "()" | ||
16 | ), | ||
17 | documentation: Some( | ||
18 | Documentation( | ||
19 | "Foo Variant (empty)" | ||
20 | ) | ||
21 | ), | ||
22 | lookup: None, | ||
23 | insert_text: None, | ||
24 | insert_text_format: PlainText, | ||
25 | source_range: [180; 180), | ||
26 | text_edit: None | ||
27 | }, | ||
28 | CompletionItem { | ||
29 | completion_kind: Reference, | ||
30 | label: "Bar", | ||
31 | kind: Some( | ||
32 | EnumVariant | ||
33 | ), | ||
34 | detail: Some( | ||
35 | "(i32, u32)" | ||
36 | ), | ||
37 | documentation: Some( | ||
38 | Documentation( | ||
39 | "Bar Variant with i32 and u32" | ||
40 | ) | ||
41 | ), | ||
42 | lookup: None, | ||
43 | insert_text: None, | ||
44 | insert_text_format: PlainText, | ||
45 | source_range: [180; 180), | ||
46 | text_edit: None | ||
47 | }, | ||
48 | CompletionItem { | ||
49 | completion_kind: Reference, | ||
50 | label: "S", | ||
51 | kind: Some( | ||
52 | EnumVariant | ||
53 | ), | ||
54 | detail: Some( | ||
55 | "(S)" | ||
56 | ), | ||
57 | documentation: None, | ||
58 | lookup: None, | ||
59 | insert_text: None, | ||
60 | insert_text_format: PlainText, | ||
61 | source_range: [180; 180), | ||
62 | text_edit: None | ||
63 | } | ||
64 | ] | ||