From 71a7f2252a22475117ea76d6fe36e6b26fcbe776 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 25 May 2016 21:41:06 +0300 Subject: [PATCH] inspection toolwindow: fix for (IDEA-156469) reverted because of too broad read action (IDEA-156635) --- .../ex/GlobalInspectionContextImpl.java | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index 57d265a01eef..03fbfd98b251 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -638,19 +638,17 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp } } - ReadAction.run(() -> { - for (GlobalInspectionContextExtension extension : myExtensions.values()) { - try { - extension.performPostRunActivities(needRepeatSearchRequest, this); - } - catch (ProcessCanceledException | IndexNotReadyException e) { - throw e; - } - catch (Throwable e) { - LOG.error(e); - } + for (GlobalInspectionContextExtension extension : myExtensions.values()) { + try { + extension.performPostRunActivities(needRepeatSearchRequest, this); } - }); + catch (ProcessCanceledException | IndexNotReadyException e) { + throw e; + } + catch (Throwable e) { + LOG.error(e); + } + } if (!ApplicationManager.getApplication().isUnitTestMode()) { if (myView == null && !ReadAction.compute(() -> InspectionResultsView.hasProblems(globalTools, this, createContentProvider())).booleanValue()) { return;