Skip to content

Commit

Permalink
Fix SlowOperations
Browse files Browse the repository at this point in the history
  • Loading branch information
alex999990009 committed Jun 28, 2024
1 parent d758397 commit fbb3366
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView
import com.intellij.execution.testframework.sm.runner.ui.SMTRunnerUIActionsHandler
import com.intellij.execution.testframework.sm.runner.ui.SMTestRunnerResultsForm
import com.intellij.execution.ui.ConsoleView
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.service
import com.intellij.psi.PsiManager
import org.arend.ext.module.ModulePath
Expand Down Expand Up @@ -74,7 +75,13 @@ class TypeCheckRunState(private val environment: ExecutionEnvironment, private v
NotificationErrorReporter(environment.project).report(ModuleNotFoundError(modulePath))
return null
}
library.resetGroup(group)
ApplicationManager.getApplication().run {
executeOnPooledThread {
runReadAction {
library.resetGroup(group)
}
}
}
} else {
val scope = library?.moduleScopeProvider?.forModule(modulePath) ?: library?.testsModuleScopeProvider?.forModule(modulePath)
if (library == null || scope == null) {
Expand Down

0 comments on commit fbb3366

Please sign in to comment.