Skip to content

Commit 9912b07

Browse files
bors[bot]Veykril
andauthored
Merge #9523
9523: fix: Don't add the trait name to the insert text in completions r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]>
2 parents cbafcca + 68f6853 commit 9912b07

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)