Skip to content

Commit a16dbdb

Browse files
committed
fix: test
1 parent 494cbd4 commit a16dbdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/ide-completion/src/completions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,10 @@ pub(super) fn complete_name_ref(
717717
dot::complete_undotted_self(acc, ctx, path_ctx, expr_ctx);
718718
item_list::complete_item_list_in_expr(acc, ctx, path_ctx, expr_ctx);
719719
snippet::complete_expr_snippet(acc, ctx, path_ctx, expr_ctx);
720-
acc.sort_new_first();
720+
721+
if matches!(ctx.token.kind(), syntax::SyntaxKind::COLON2) {
722+
acc.sort_new_first();
723+
}
721724
}
722725
PathKind::Type { location } => {
723726
r#type::complete_type_path(acc, ctx, path_ctx, location);

0 commit comments

Comments
 (0)