MCPcopy
hub / github.com/continuedev/continue / displayDiff

Function displayDiff

core/edit/lazy/deterministic.test.ts:37–43  ·  view source on GitHub ↗
(diff: DiffLine[])

Source from the content-addressed store, hash-verified

35}
36
37function displayDiff(diff: DiffLine[]) {
38 return diff
39 .map(({ type, line }) =>
40 type === "same" ? line : `${UNIFIED_DIFF_SYMBOLS[type]} ${line}`,
41 )
42 .join("\n");
43}
44
45function normalizeDisplayedDiff(d: string): string {
46 return d

Callers 1

expectDiffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected