mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Reflect test case
This commit is contained in:
parent
6c676909dd
commit
4d13691ad1
1 changed files with 7 additions and 7 deletions
|
@ -641,7 +641,7 @@ mod tests {
|
||||||
assert_debug_snapshot!(
|
assert_debug_snapshot!(
|
||||||
do_reference_completion(
|
do_reference_completion(
|
||||||
r"
|
r"
|
||||||
fn with_args(x: i32, y: String) {}
|
fn with_args(x: i32, y: String, _z: bool) {}
|
||||||
fn main() { with_<|> }
|
fn main() { with_<|> }
|
||||||
"
|
"
|
||||||
),
|
),
|
||||||
|
@ -649,8 +649,8 @@ mod tests {
|
||||||
[
|
[
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "main()",
|
label: "main()",
|
||||||
source_range: 80..85,
|
source_range: 90..95,
|
||||||
delete: 80..85,
|
delete: 90..95,
|
||||||
insert: "main()$0",
|
insert: "main()$0",
|
||||||
kind: Function,
|
kind: Function,
|
||||||
lookup: "main",
|
lookup: "main",
|
||||||
|
@ -658,12 +658,12 @@ mod tests {
|
||||||
},
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "with_args(…)",
|
label: "with_args(…)",
|
||||||
source_range: 80..85,
|
source_range: 90..95,
|
||||||
delete: 80..85,
|
delete: 90..95,
|
||||||
insert: "with_args(${1:x}, ${2:y})$0",
|
insert: "with_args(${1:x}, ${2:y}, ${3:z})$0",
|
||||||
kind: Function,
|
kind: Function,
|
||||||
lookup: "with_args",
|
lookup: "with_args",
|
||||||
detail: "fn with_args(x: i32, y: String)",
|
detail: "fn with_args(x: i32, y: String, _z: bool)",
|
||||||
trigger_call_info: true,
|
trigger_call_info: true,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue