mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[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:
committed by
intellij-monorepo-bot
parent
db160b46fa
commit
f71d8041b3
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user