-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACT: Try to group auto-inserted use item with existing ones by last component #3405
Conversation
Really is should be done via "Optimize imports" action. Also, should it be optional? |
Looks like no. "Optimize import" action usually reorders imports, removes unused, etc. I think it's unexpected during completion. For example, kotlin implementation of completion from index/"auto import" quick fix just insert new |
src/test/kotlin/org/rust/ide/inspections/import/AutoImportFixTest.kt
Outdated
Show resolved
Hide resolved
9216c51
to
594618b
Compare
src/main/kotlin/org/rust/ide/inspections/import/AutoImportFix.kt
Outdated
Show resolved
Hide resolved
594618b
to
41543c3
Compare
Fixed. |
bors r+ |
Closes #3403.