Show occurrences chooser in EDT thread in KotlinIntroduceVariableHandler

This commit is contained in:
Ilya Kirillov
2019-08-02 15:13:51 +03:00
parent 02f2009f2a
commit b4a0436aba
@@ -644,8 +644,10 @@ object KotlinIntroduceVariableHandler : RefactoringActionHandler {
return occurrence.extractableSubstringInfo?.contentRange ?: occurrence.textRange return occurrence.extractableSubstringInfo?.contentRange ?: occurrence.textRange
} }
} }
ApplicationManager.getApplication().invokeLater {
chooser.showChooser(expression, allOccurrences, callback) chooser.showChooser(expression, allOccurrences, callback)
} }
}
else { else {
callback.pass(OccurrencesChooser.ReplaceChoice.ALL) callback.pass(OccurrencesChooser.ReplaceChoice.ALL)
} }