From f71d8041b39a90d38b5b617fe2a13dc43b7ff96c Mon Sep 17 00:00:00 2001 From: "Kirill.Karnaukhov" Date: Wed, 7 May 2025 14:15:31 +0200 Subject: [PATCH] [editor-highlighting] LLM-16408: mark `LexerEditorHighlighter#getAttributesForPreviousAndTypedChars` as synchronized (cherry picked from commit e1ac49229197e215024e152509a914291d206923) IJ-CR-162486 GitOrigin-RevId: 23e76e94fd33ad245a24c10f5ec3f0ac7dfd4fd7 --- .../intellij/openapi/editor/ex/util/LexerEditorHighlighter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/editor-ui-ex/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java b/platform/editor-ui-ex/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java index d8fae9f7af87..c38ccaa34380 100644 --- a/platform/editor-ui-ex/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java +++ b/platform/editor-ui-ex/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java @@ -486,7 +486,7 @@ public class LexerEditorHighlighter implements EditorHighlighter, PrioritizedDoc return attributesKeys; } - public @NotNull List getAttributesForPreviousAndTypedChars(@NotNull Document document, int offset, char c) { + public synchronized @NotNull List getAttributesForPreviousAndTypedChars(@NotNull Document document, int offset, char c) { CharSequence text = document.getImmutableCharSequence(); CharSequence newText = StringUtil.replaceSubSequence(text, offset, offset, new SingleCharSequence(c));