407
408
if (decorationsWithGaps.size > 0) {
409
>
for (const decorationId of decorationsWithGaps) {
lineHeights.ts
410
>
const decoration = this._decorationIDToCustomLine.get(decorationId);
411
>
if (decoration) {
412
>
const startLineNumber = decoration.reduce((min, l) => Math.min(min, l.lineNumber), fromLineNumber); // min
413
>
const endLineNumber = decoration.reduce((max, l) => Math.max(max, l.lineNumber), fromLineNumber); // max
414
>
const lineHeight = decoration.reduce((max, l) => Math.max(max, l.specialHeight), 0);
415
>
toReAdd.push({
416
>
decorationId,
417
>
startLineNumber,
418
>
endLineNumber,
419
>
lineHeight
420
>
});
421
>
}
422
>
}
423
>
424
>
for (const dec of toReAdd) {
425
>
this._doInsertOrChangeCustomLineHeight(dec.decorationId, dec.startLineNumber, dec.endLineNumber, dec.lineHeight, stagedInserts, stagedIdMap);
426
>
}
427
>
}
428
}
429