590
const tokenEndIndex = token.endIndex;
591
if (lastTokenEndIndex + Constants.LongToken < tokenEndIndex) {
593
>
const tokenMetadata = token.metadata;
594
>
const tokenContainsRTL = token.containsRTL;
595
>
596
>
let lastSpaceOffset = -1;
597
>
let currTokenStart = lastTokenEndIndex;
598
>
for (let j = lastTokenEndIndex; j < tokenEndIndex; j++) {
599
>
if (lineContent.charCodeAt(j) === CharCode.Space) {
600
lastSpaceOffset = j;
601
}
602
>
if (lastSpaceOffset !== -1 && j - currTokenStart >= Constants.LongToken) {
viewLineRenderer.ts
603
// Split at `lastSpaceOffset` + 1
604
result[resultLen++] = new LinePart(lastSpaceOffset + 1, tokenType, tokenMetadata, tokenContainsRTL);