Do not start import fixes in write action because pop-up is possible

I was not able to reproduce the issue. However, according the rules
quick-fixes working with pop-ups should not start in write action
#KT-28196 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-11-16 17:24:49 +03:00
parent 1585461a68
commit 5385efd7d7
@@ -125,7 +125,7 @@ internal abstract class ImportFixBase<T : KtExpression> protected constructor(
}
}
override fun startInWriteAction() = true
override fun startInWriteAction() = false
fun isOutdated() = modificationCountOnCreate != PsiModificationTracker.SERVICE.getInstance(project).modificationCount