Fix comment order

This commit is contained in:
Aleksey Kladov 2020-03-06 17:44:30 +01:00
parent b33b843f40
commit 21f40f2b8f

View File

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