Skip to content

Commit 68f6853

Browse files
committed
Don't add the trait name to the insert text in completions
1 parent 9f9cc72 commit 68f6853

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ide_completion/src/item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ impl Builder {
437437
format_to!(label, " (use {})", original_path)
438438
}
439439
} else if let Some(trait_name) = self.trait_name {
440+
insert_text = insert_text.or_else(|| Some(label.clone()));
440441
format_to!(label, " (as {})", trait_name)
441442
}
442443

0 commit comments

Comments
 (0)