467
break;
468
}
470
>
let headEndInS1Line: number, headEndInS1Col: number;
471
>
if (headLengthLine === 0) {
472
headEndInS1Line = currentPosInS1Line;
473
headEndInS1Col = currentPosInS1Col + headLengthCol;
475
headEndInS1Line = currentPosInS1Line + headLengthLine;
476
headEndInS1Col = headLengthCol + 1;
477
}
479
>
let r2EndIsBeforeHeadEnd = false;
480
>
if (r2End.lineNumber < headEndInS1Line) {
481
r2EndIsBeforeHeadEnd = true;
482
>
} else if (r2End.lineNumber === headEndInS1Line) {
textEdit.ts
483
r2EndIsBeforeHeadEnd = r2End.column < headEndInS1Col;
484
}
486
>
if (r2EndIsBeforeHeadEnd) {
487
let splitLenLine: number, splitLenCol: number;
488
if (currentPosInS1Line === r2End.lineNumber) {