IJPL-218632 [highlighting]: don't break loop to avoid skipping error elements

GitOrigin-RevId: ac4e517768aca35067ee1a93cfd05f667e4962e1
This commit is contained in:
Bas Leijdekkers
2025-11-15 18:15:51 +00:00
committed by intellij-monorepo-bot
parent feedbe82b4
commit bb4d2ef793
@@ -168,11 +168,10 @@ public sealed class GeneralHighlightingPass extends ProgressableTextEditorHighli
if (!newInfos.isEmpty()) {
int size = newInfos.size(); // size == 1 most of the time
for (int i = 0; i < size; i++) {
myHighlights.add(newInfos.get(i));
final HighlightInfo info = newInfos.get(i);
myHighlights.add(info);
if (info.getSeverity() == HighlightSeverity.ERROR) {
myHasErrorSeverity = true;
break;
}
}
}