Community
Participate
Working Groups
Build Identifier: Attempt to apply custom syntax highlighting preference, i.e. new color for methods, when big PHP file is open in the editor (> 25k lines of code) freezes UI for few minutes. Reproducible: Always
Created attachment 208388 [details] Improved invalidation of text presentation on highlighting style changed event org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingPresenter.highlightingStyleChanged(HighlightingStyle highlighting) operation seems to be very inefficient. Whole text representation is invalidated every time the if (position.getHighlighting() == highlighting && fSourceViewer instanceof ITextViewerExtension2) condition is not met. Attached patch changes the flow and makes it similar to SemanticHighlightingPresenter.invalidateTextPresentation().
Thanks for the patch, Natalia. This looks like it'll help immensely! I've checked in the code for Indigo SR2 and Juno.