From 094188e5fa3b18a38e09f1ad7467abd1a61ba0c0 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Mon, 13 Aug 2018 19:05:46 +0300 Subject: [PATCH] IDEA-197098 Affected Tests: IndexNotReadyException honor dumb mode --- .../testDiscovery/actions/ShowDiscoveredTestsAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowDiscoveredTestsAction.java b/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowDiscoveredTestsAction.java index 1dd091511c27..04774cba48a2 100644 --- a/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowDiscoveredTestsAction.java +++ b/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowDiscoveredTestsAction.java @@ -264,6 +264,7 @@ public class ShowDiscoveredTestsAction extends AnAction { @NotNull PsiMethod[] methods, @NotNull TestDiscoveryProducer.PsiTestProcessor consumer, @Nullable Runnable doWhenDone) { + if (DumbService.isDumb(project)) return; ApplicationManager.getApplication().executeOnPooledThread(() -> { processMethodsInner(project, methods, consumer); if (doWhenDone != null) {