don't start INFORMATION inspections e.g. if file belongs to cls

This commit is contained in:
Anna Kozlova
2016-07-04 15:40:56 +03:00
parent 1ad27e63db
commit 51cd51c0cb
@@ -20,6 +20,7 @@ import com.intellij.codeHighlighting.HighlightDisplayLevel;
import com.intellij.codeHighlighting.TextEditorHighlightingPass;
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.codeInsight.daemon.impl.analysis.HighlightingLevelManager;
import com.intellij.codeInsight.hint.HintManager;
import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.codeInsight.intention.IntentionManager;
@@ -311,7 +312,9 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass {
}
}
collectIntentionsFromDoNotShowLeveledInspections(project, hostFile, psiElement, offset, intentions);
if (HighlightingLevelManager.getInstance(project).shouldInspect(hostFile)) {
collectIntentionsFromDoNotShowLeveledInspections(project, hostFile, psiElement, offset, intentions);
}
final int line = hostDocument.getLineNumber(offset);
MarkupModelEx model = (MarkupModelEx)DocumentMarkupModel.forDocument(hostDocument, project, true);