[editor-highlighting] LLM-16408: mark LexerEditorHighlighter#getAttributesForPreviousAndTypedChars as synchronized

(cherry picked from commit e1ac49229197e215024e152509a914291d206923)

IJ-CR-162486

GitOrigin-RevId: 23e76e94fd33ad245a24c10f5ec3f0ac7dfd4fd7
This commit is contained in:
Kirill.Karnaukhov
2025-05-07 14:15:31 +02:00
committed by intellij-monorepo-bot
parent db160b46fa
commit f71d8041b3

View File

@@ -486,7 +486,7 @@ public class LexerEditorHighlighter implements EditorHighlighter, PrioritizedDoc
return attributesKeys;
}
public @NotNull List<TextAttributes> getAttributesForPreviousAndTypedChars(@NotNull Document document, int offset, char c) {
public synchronized @NotNull List<TextAttributes> getAttributesForPreviousAndTypedChars(@NotNull Document document, int offset, char c) {
CharSequence text = document.getImmutableCharSequence();
CharSequence newText = StringUtil.replaceSubSequence(text, offset, offset, new SingleCharSequence(c));