Skip to content

Commit e714a22

Browse files
committed
change display to match checkpoint view diff before and after lines.
1 parent 9a31d53 commit e714a22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/prompts/responses.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ Otherwise, if you have not completed the task and do not need additional informa
177177

178178
createPrettyPatch: (filename = "file", oldStr?: string, newStr?: string) => {
179179
// strings cannot be undefined or diff throws exception
180-
const patch = diff.createPatch(filename.toPosix(), oldStr || "", newStr || "")
180+
const patch = diff.createPatch(filename.toPosix(), oldStr || "", newStr || "", undefined, undefined, {
181+
context: 3,
182+
})
181183
const lines = patch.split("\n")
182184
const prettyPatchLines = lines.slice(4)
183185
return prettyPatchLines.join("\n")

0 commit comments

Comments
 (0)