From 21f40f2b8f2d2ce19c2bc69201e99503a8d15e04 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 6 Mar 2020 17:44:30 +0100 Subject: Fix comment order --- crates/ra_ide/src/completion/presentation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index dac232a85..e623c47ec 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs @@ -103,7 +103,7 @@ impl Completions { } }; - // If not an import, add parenthesis automatically. + // Add `<>` for generic types if ctx.is_path_type && !ctx.has_type_args && ctx.db.feature_flags.get("completion.insertion.add-call-parenthesis") @@ -211,7 +211,7 @@ impl Completions { .set_deprecated(is_deprecated(func, ctx.db)) .detail(function_signature.to_string()); - // Add `<>` for generic types + // If not an import, add parenthesis automatically. if ctx.use_item_syntax.is_none() && !ctx.is_call && ctx.db.feature_flags.get("completion.insertion.add-call-parenthesis") -- cgit v1.2.3