mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Fix snap
This commit is contained in:
parent
7b548de634
commit
30f0736e64
2 changed files with 12 additions and 6 deletions
|
@ -119,7 +119,13 @@ mod tests {
|
||||||
"reference_completion",
|
"reference_completion",
|
||||||
"
|
"
|
||||||
//- /lib.rs
|
//- /lib.rs
|
||||||
enum E { Foo, Bar(i32) }
|
/// An enum
|
||||||
|
enum E {
|
||||||
|
/// Foo Variant
|
||||||
|
Foo,
|
||||||
|
/// Bar Variant with i32
|
||||||
|
Bar(i32)
|
||||||
|
}
|
||||||
fn foo() { let _ = E::<|> }
|
fn foo() { let _ = E::<|> }
|
||||||
",
|
",
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
created: "2019-01-23T21:14:09.186661600+00:00"
|
created: "2019-01-23T23:49:43.278245900+00:00"
|
||||||
creator: insta@0.5.1
|
creator: insta@0.5.1
|
||||||
expression: kind_completions
|
expression: kind_completions
|
||||||
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||||
|
@ -14,13 +14,13 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||||
detail: None,
|
detail: None,
|
||||||
documentation: Some(
|
documentation: Some(
|
||||||
Documentation(
|
Documentation(
|
||||||
"This is foo"
|
"Foo Variant"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
lookup: None,
|
lookup: None,
|
||||||
insert_text: None,
|
insert_text: None,
|
||||||
insert_text_format: PlainText,
|
insert_text_format: PlainText,
|
||||||
source_range: [109; 109),
|
source_range: [116; 116),
|
||||||
text_edit: None
|
text_edit: None
|
||||||
},
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
|
@ -32,13 +32,13 @@ source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs"
|
||||||
detail: None,
|
detail: None,
|
||||||
documentation: Some(
|
documentation: Some(
|
||||||
Documentation(
|
Documentation(
|
||||||
"Use when we need an `i32`"
|
"Bar Variant with i32"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
lookup: None,
|
lookup: None,
|
||||||
insert_text: None,
|
insert_text: None,
|
||||||
insert_text_format: PlainText,
|
insert_text_format: PlainText,
|
||||||
source_range: [109; 109),
|
source_range: [116; 116),
|
||||||
text_edit: None
|
text_edit: None
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue