export class DefaultLinesDiffComputer implements ILinesDiffComputer {
private readonly dynamicProgrammingDiffing = new DynamicProgrammingDiffing();
defaultLinesDiffComputer.ts
private readonly myersDiffingAlgorithm = new MyersDiffAlgorithm();
computeDiff(originalLines: string[], modifiedLines: string[], options: ILinesDiffComputerOptions): LinesDiff {
if (originalLines.length <= 1 && equals(originalLines, modifiedLines, (a, b) => a === b)) {
defaultLinesDiffComputer.ts
return new LinesDiff([], [], false);
}
if (originalLines.length === 1 && originalLines[0].length === 0 || modifiedLines.length === 1 && modifiedLines[0].length === 0) {
return new LinesDiff([
new DetailedLineRangeMapping(