mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
show function params in completion detail
This commit is contained in:
parent
437527b226
commit
53bb46fa85
8 changed files with 155 additions and 82 deletions
|
@ -230,7 +230,7 @@ fn foo() {
|
|||
bar.fo$0;
|
||||
}
|
||||
"#,
|
||||
DetailAndDocumentation { detail: "-> ()", documentation: "Do the foo" },
|
||||
DetailAndDocumentation { detail: "fn(&self)", documentation: "Do the foo" },
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ fn foo() {
|
|||
bar.fo$0;
|
||||
}
|
||||
"#,
|
||||
DetailAndDocumentation { detail: "-> ()", documentation: " Do the foo" },
|
||||
DetailAndDocumentation { detail: "fn(&self)", documentation: " Do the foo" },
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,7 @@ fn bar() {
|
|||
for c in fo$0
|
||||
}
|
||||
"#,
|
||||
DetailAndDocumentation { detail: "-> &str", documentation: "Do the foo" },
|
||||
DetailAndDocumentation { detail: "fn() -> &str", documentation: "Do the foo" },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue