281
this._normalizedRanges.splice(joinRangeStartIdx, 0, range);
282
} else if (joinRangeStartIdx === joinRangeEndIdxExclusive - 1) {
283
>
// Else, there is an element that touches range and in this case it is both the first and last element. Thus we can replace it
lineRange.ts
284
>
const joinRange = this._normalizedRanges[joinRangeStartIdx];
285
>
this._normalizedRanges[joinRangeStartIdx] = joinRange.join(range);
286
>
} else {
287
// First and last element are different - we need to replace the entire range
288
const joinRange = this._normalizedRanges[joinRangeStartIdx].join(this._normalizedRanges[joinRangeEndIdxExclusive - 1]).join(range);