17
export class LegacyLinesDiffComputer implements ILinesDiffComputer {
18
computeDiff(originalLines: string[], modifiedLines: string[], options: ILinesDiffComputerOptions): LinesDiff {
20
>
maxComputationTime: options.maxComputationTimeMs,
21
>
shouldIgnoreTrimWhitespace: options.ignoreTrimWhitespace,
22
>
shouldComputeCharChanges: true,
23
>
shouldMakePrettyDiff: true,
24
>
shouldPostProcessCharChanges: true,
25
>
});
26
>
const result = diffComputer.computeDiff();
27
>
const changes: DetailedLineRangeMapping[] = [];
28
>
let lastChange: DetailedLineRangeMapping | null = null;
29
>
30
>
31
>
for (const c of result.changes) {
32
let originalRange: LineRange;
33
if (c.originalEndLineNumber === 0) {