inspection toolwindow: fix for (IDEA-156469) reverted because of too broad read actio...
authorDmitry Batkovich <batya239@gmail.com>
Wed, 25 May 2016 18:41:06 +0000 (21:41 +0300)
committerDmitry Batkovich <batya239@gmail.com>
Wed, 25 May 2016 18:41:06 +0000 (21:41 +0300)
platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java

index 57d265a01eef9235146a84a63f96fd345782a511..03fbfd98b25112b577bafe9064b22fbb7778f52a 100644 (file)
@@ -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;