Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upINSP: Auto import quick fix #2338
Conversation
This comment has been minimized.
This comment has been minimized.
|
@matklad or @vlad20012 r? |
matklad
reviewed
Mar 1, 2018
|
|
||
| override fun createOptionsPanel(): JComponent { | ||
| val panel = MultipleCheckboxOptionsPanel(this) |
This comment has been minimized.
This comment has been minimized.
|
|
||
| class AutoImportFix(path: RsPath) : LocalQuickFixOnPsiElement(path), HighPriorityAction { | ||
|
|
||
| private var isConsumed: Boolean = false |
This comment has been minimized.
This comment has been minimized.
matklad
Mar 1, 2018
Member
This bit of mutable state looks suspicious... Is this pattern used in other extensions?
This comment has been minimized.
This comment has been minimized.
Undin
Mar 1, 2018
•
Member
This bit of mutable state looks suspicious...
I don't like it too but without it, we can get the following situation after successful auto import application

I don't know if it is bug or feature but looks like that platform tries to check availability of HintAction after its application
Is this pattern used in other extensions?
Python AutoImportQuickFix uses the same approach
Undin
force-pushed the
auto-import-quick-fix
branch
from
245199e
to
cc9fb2e
Mar 1, 2018
Undin
added some commits
Feb 26, 2018
Undin
force-pushed the
auto-import-quick-fix
branch
from
cc9fb2e
to
3f37a92
Mar 1, 2018
This comment has been minimized.
This comment has been minimized.
|
@matklad other comments? |
This comment has been minimized.
This comment has been minimized.
|
@Undin I don't have time for a thorough review at the moment, but all in all it looks great, and I can't wait to try the nightly build with this feature, so, let's r+ and ask @vlad20012 to scrutinize this after the merge? :-) |
This comment has been minimized.
This comment has been minimized.
|
bors r=matklad |
bot
added a commit
that referenced
this pull request
Mar 1, 2018
This comment has been minimized.
This comment has been minimized.
Build failed |
This comment has been minimized.
This comment has been minimized.
|
bors r=matklad |
bot
added a commit
that referenced
this pull request
Mar 1, 2018
This comment has been minimized.
This comment has been minimized.
Build failed |
This comment has been minimized.
This comment has been minimized.
|
bors r=matklad |
Undin commentedMar 1, 2018
Finally, it works🎉

RsUnresolvedReferenceInspectionRsUnresolvedReferenceInspectionCloses #1366
Closes #2034