IDEA-197098 Affected Tests: IndexNotReadyException

honor dumb mode
This commit is contained in:
Sergey Ignatov
2018-08-13 19:07:27 +03:00
parent 44d3ac03c7
commit 094188e5fa
@@ -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) {