aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide_api/src/completion/complete_path.rs8
-rw-r--r--crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap10
2 files changed, 12 insertions, 6 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs
index aeb226847..e44b76c4a 100644
--- a/crates/ra_ide_api/src/completion/complete_path.rs
+++ b/crates/ra_ide_api/src/completion/complete_path.rs
@@ -119,7 +119,13 @@ mod tests {
119 "reference_completion", 119 "reference_completion",
120 " 120 "
121 //- /lib.rs 121 //- /lib.rs
122 enum E { Foo, Bar(i32) } 122 /// An enum
123 enum E {
124 /// Foo Variant
125 Foo,
126 /// Bar Variant with i32
127 Bar(i32)
128 }
123 fn foo() { let _ = E::<|> } 129 fn foo() { let _ = E::<|> }
124 ", 130 ",
125 ); 131 );
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__reference_completion.snap
index 9779541b3..e46f7807b 100644
--- a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap
+++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-01-23T21:14:09.186661600+00:00" 2created: "2019-01-23T23:49:43.278245900+00:00"
3creator: [email protected] 3creator: [email protected]
4expression: kind_completions 4expression: kind_completions
5source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs" 5source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
@@ -14,13 +14,13 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
14 detail: None, 14 detail: None,
15 documentation: Some( 15 documentation: Some(
16 Documentation( 16 Documentation(
17 "This is foo" 17 "Foo Variant"
18 ) 18 )
19 ), 19 ),
20 lookup: None, 20 lookup: None,
21 insert_text: None, 21 insert_text: None,
22 insert_text_format: PlainText, 22 insert_text_format: PlainText,
23 source_range: [109; 109), 23 source_range: [116; 116),
24 text_edit: None 24 text_edit: None
25 }, 25 },
26 CompletionItem { 26 CompletionItem {
@@ -32,13 +32,13 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
32 detail: None, 32 detail: None,
33 documentation: Some( 33 documentation: Some(
34 Documentation( 34 Documentation(
35 "Use when we need an `i32`" 35 "Bar Variant with i32"
36 ) 36 )
37 ), 37 ),
38 lookup: None, 38 lookup: None,
39 insert_text: None, 39 insert_text: None,
40 insert_text_format: PlainText, 40 insert_text_format: PlainText,
41 source_range: [109; 109), 41 source_range: [116; 116),
42 text_edit: None 42 text_edit: None
43 } 43 }
44] 44]