Skip to content

prepareDiffSyntax

prepareDiffSyntax(file, options?): Promise<readonly PreparedDiffSyntaxSource[]>

Parses a diff’s sources ahead of the view that will show them, so setFile(file, rows, prepared) paints coloured on its first frame. The caller owns the result; an aborted preparation resolves empty.

DiffFile

PrepareDiffSyntaxOptions

Promise<readonly PreparedDiffSyntaxSource[]>