]> git.lizzy.rs Git - rust.git/commit
fix: insert auto-imports after header comments
authorWesley Norris <repnop@outlook.com>
Mon, 17 Jan 2022 22:06:10 +0000 (17:06 -0500)
committerWesley Norris <repnop@outlook.com>
Mon, 17 Jan 2022 22:06:10 +0000 (17:06 -0500)
commit1c866573cb4f8ec4801cf58da86f298cad2906e6
treea52465887f72a1e53adb6463e1ed633fe6a307aa
parent8be2be8c794192c32b1814d6a0be04c68af13855
fix: insert auto-imports after header comments

Fixes #8607.

This commit changes the auto-import functionality and causes it to add
imports after any leading comments, which are commonly license headers.
This does not affect comments on items as they're considered part of the
item itself and not separate.
crates/ide_db/src/helpers/insert_use.rs
crates/ide_db/src/helpers/insert_use/tests.rs