Skip to content

Commit 368519d

Browse files
committed
update insert_use_with_editor_ to make use of whitespace heuristics
1 parent b6fa615 commit 368519d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/ide-db/src/imports/insert_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ fn insert_use_with_editor_(
709709
Some(b) => {
710710
cov_mark::hit!(insert_empty_module);
711711
syntax_editor.insert(Position::after(&b), syntax_factory.whitespace("\n"));
712-
syntax_editor.insert(Position::after(&b), use_item.syntax());
712+
syntax_editor.insert_with_whitespace(Position::after(&b), use_item.syntax());
713713
}
714714
None => {
715715
cov_mark::hit!(insert_empty_file);

0 commit comments

Comments
 (0)