dont complete () if they are already there

This commit is contained in:
Aleksey Kladov 2019-01-10 21:38:04 +03:00
parent f96312b836
commit faa1d35cbc
4 changed files with 26 additions and 6 deletions

View file

@ -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",
)
}
}