diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index 4723a65a6..2494d28ed 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -125,4 +125,18 @@ mod tests { | |||
125 | "foo", | 125 | "foo", |
126 | ) | 126 | ) |
127 | } | 127 | } |
128 | |||
129 | #[test] | ||
130 | fn dont_render_function_parens_if_already_call() { | ||
131 | check_reference_completion( | ||
132 | " | ||
133 | //- /lib.rs | ||
134 | fn frobnicate() {} | ||
135 | fn main() { | ||
136 | frob<|>(); | ||
137 | } | ||
138 | ", | ||
139 | "main;frobnicate", | ||
140 | ) | ||
141 | } | ||
128 | } | 142 | } |