mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection toolwindow: execution of post run activities inside read action IDEA-156469
This commit is contained in:
+13
-10
@@ -637,17 +637,20 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
}
|
||||
}
|
||||
}
|
||||
for (GlobalInspectionContextExtension extension : myExtensions.values()) {
|
||||
try {
|
||||
extension.performPostRunActivities(needRepeatSearchRequest, this);
|
||||
|
||||
ReadAction.run(() -> {
|
||||
for (GlobalInspectionContextExtension extension : myExtensions.values()) {
|
||||
try {
|
||||
extension.performPostRunActivities(needRepeatSearchRequest, this);
|
||||
}
|
||||
catch (ProcessCanceledException | IndexNotReadyException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (Throwable e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user