mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build graph: cleanup done amount if exception is thrown and logged (IDEA-112290)
This commit is contained in:
+7
-1
@@ -401,7 +401,13 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
InspectionToolPresentation toolPresentation = getPresentation(toolWrapper);
|
||||
try {
|
||||
if (tool.isGraphNeeded()) {
|
||||
((RefManagerImpl)getRefManager()).findAllDeclarations();
|
||||
try {
|
||||
((RefManagerImpl)getRefManager()).findAllDeclarations();
|
||||
}
|
||||
catch (Throwable e) {
|
||||
getStdJobDescriptors().BUILD_GRAPH.setDoneAmount(0);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
tool.runInspection(scope, inspectionManager, this, toolPresentation);
|
||||
if (tool.queryExternalUsagesRequests(inspectionManager, this, toolPresentation)) {
|
||||
|
||||
Reference in New Issue
Block a user