From 863cbef237ddcc2fe9994d4d2d229af690acac52 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 19 Jun 2018 06:21:37 +0300 Subject: [PATCH] check suppress status for reported issues (IDEA-194117) --- .../codeInsight/daemon/impl/LocalInspectionsPass.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java index f1a4a6aa5f78..d6fcfd43f006 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java @@ -727,12 +727,12 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass ProgressManager.checkCanceled(); final LocalInspectionToolWrapper wrapper = pair.getKey(); final LocalInspectionTool tool = wrapper.getTool(); - if (host != null && myIgnoreSuppressed && SuppressionUtil.inspectionResultSuppressed(host, tool)) { - continue; - } ProblemsHolder holder = new ProblemsHolder(iManager, injectedPsi, isOnTheFly) { @Override public void registerProblem(@NotNull ProblemDescriptor descriptor) { + if (host != null && myIgnoreSuppressed && SuppressionUtil.inspectionResultSuppressed(host, tool)) { + return; + } super.registerProblem(descriptor); if (isOnTheFly && inVisibleRange) { addDescriptorIncrementally(descriptor, wrapper, indicator);