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,7 +644,9 @@ object KotlinIntroduceVariableHandler : RefactoringActionHandler {
return occurrence.extractableSubstringInfo?.contentRange ?: occurrence.textRange
}
}
chooser.showChooser(expression, allOccurrences, callback)
ApplicationManager.getApplication().invokeLater {
chooser.showChooser(expression, allOccurrences, callback)
}
}
else {
callback.pass(OccurrencesChooser.ReplaceChoice.ALL)