mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
dont complete () if they are already there
This commit is contained in:
parent
f96312b836
commit
faa1d35cbc
4 changed files with 26 additions and 6 deletions
|
@ -125,4 +125,18 @@ mod tests {
|
|||
"foo",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dont_render_function_parens_if_already_call() {
|
||||
check_reference_completion(
|
||||
"
|
||||
//- /lib.rs
|
||||
fn frobnicate() {}
|
||||
fn main() {
|
||||
frob<|>();
|
||||
}
|
||||
",
|
||||
"main;frobnicate",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue