mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't update LayeredLexerEditorHighlighter layers on each editor paint (IDEA-172756)
This commit is contained in:
-9
@@ -188,17 +188,8 @@ public class LayeredLexerEditorHighlighter extends LexerEditorHighlighter {
|
||||
@NotNull
|
||||
@Override
|
||||
public HighlighterIterator createIterator(int startOffset) {
|
||||
// do NOT synchronize before updateLayers due to deadlock with PsiLock
|
||||
final boolean changed = updateLayers();
|
||||
|
||||
//noinspection SynchronizeOnThis
|
||||
synchronized (this) {
|
||||
if (changed) {
|
||||
Document document = getDocument();
|
||||
if (document != null) {
|
||||
resetText(document.getImmutableCharSequence());
|
||||
}
|
||||
}
|
||||
return new LayeredHighlighterIteratorImpl(startOffset);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user