Replace checkout diff parsing with async highlighted diff

This commit is contained in:
Mohamed Boudra
2026-01-23 11:23:56 +07:00
parent 8154a05fa5
commit 27c493922c
2 changed files with 2 additions and 112 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { exec, execFile } from "child_process";
import { promisify } from "util";
import { resolve } from "path";
import type { ParsedDiffFile } from "../server/utils/diff-highlighter.js";
import { parseDiff } from "../server/utils/diff-highlighter.js";
import { parseAndHighlightDiff } from "../server/utils/diff-highlighter.js";
import { detectRepoInfo } from "./worktree.js";
const execAsync = promisify(exec);
@@ -325,7 +325,7 @@ export async function getCheckoutDiff(
}
if (compare.includeStructured) {
return { diff, structured: parseDiff(diff) };
return { diff, structured: await parseAndHighlightDiff(diff, cwd) };
}
return { diff };
}