check suppress status for reported issues (IDEA-194117)

This commit is contained in:
Anna Kozlova
2018-06-19 06:23:47 +03:00
parent b5a6ac001b
commit 863cbef237
@@ -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);