inspection toolwindow: fix for (IDEA-156469) reverted because of too broad read action (IDEA-156635)

This commit is contained in:
Dmitry Batkovich
2016-05-25 21:41:06 +03:00
parent 1345724929
commit 71a7f2252a
@@ -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;