From: Dmitry Batkovich Date: Tue, 4 Oct 2016 13:15:15 +0000 (+0300) Subject: inspection view: redundant clause is deleted in inspection presentation to add proble... X-Git-Tag: clion/163.5685^2~2^2~6 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=d9cdcadef53fa7282f60c6ea2a939ff657e2e1a5 inspection view: redundant clause is deleted in inspection presentation to add problems from global simple tool IDEA-162032 --- diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java index be4b9091a6da..7b1f0c458421 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java @@ -211,10 +211,8 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro if (context.isViewClosed() || !(refElement instanceof RefElement)) { return; } - if (myToolWrapper instanceof LocalInspectionToolWrapper && !ApplicationManager.getApplication().isUnitTestMode()) { - context.initializeViewIfNeed().doWhenDone(() -> { - context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors); - }); + if (!ApplicationManager.getApplication().isUnitTestMode()) { + context.initializeViewIfNeed().doWhenDone(() -> context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors)); } }