Community
Participate
Working Groups
during the onLineStyle event the application should provided the editor with the styles for the given line. Style ranges (range.start, range.end) that are completely outside the line range (line.start, line.end) should be ignored. When a range partially overlaps the line (for example, a range starts in line N-1 and ends in line N) the editor clamps the range so that the portion of the range that belongs in the given line is used. The bug in the editor is that ranges that were completely before the line range were being clamped to the line range, causing hundreds of the empty span elements to be inserted in the lines div. As the number of DOM elements that compose the editor grows some operations become very slow, for example, changing the DOM selection becomes very expensive.
Note: this bug is not affecting Orion as the LineStyler used by Orion does not include style ranges that do not overlap the line.
Fixed http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=ec9d97b42d652a9dd791f4fa0cb6be69cc492cf0