FIR IDE: fix flaky completion test

This commit is contained in:
Ilya Kirillov
2021-05-31 19:46:02 +02:00
committed by TeamCityServer
parent 108176d0b6
commit fa2f2c34cb
@@ -17,8 +17,10 @@ internal fun InsertionContext.addSymbolAndInvokeCompletion(symbol: String) {
private fun invokeCompletion(context: InsertionContext) {
ApplicationManager.getApplication().invokeLater {
CodeCompletionHandlerBase(CompletionType.BASIC, true, false, true)
.invokeCompletion(context.project, context.editor)
if (!context.editor.isDisposed) {
CodeCompletionHandlerBase(CompletionType.BASIC, true, false, true)
.invokeCompletion(context.project, context.editor)
}
}
}