From 2e8eda397e6babfa0c1fa5dfd1f6ed716b1b8053 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Wed, 14 Dec 2011 16:13:35 +0400 Subject: [PATCH] applyToDialects processed properly(cherry picked from commit 94e75a8) --- .../codeInsight/daemon/impl/LocalInspectionsPass.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 3aed41568a8b..cf271064c67d 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 @@ -275,8 +275,10 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass LocalInspectionTool tool = wrapper.getTool(); if (!checkDumbAwareness || tool instanceof DumbAware) { map.putValue(tool, language); - for (Language dialect : lang.getDialects()) { - map.putValue(tool, dialect.getID()); + if (wrapper.applyToDialects()) { + for (Language dialect : lang.getDialects()) { + map.putValue(tool, dialect.getID()); + } } } }