Revert changes on omitted line count in write_to_file (#2807)

This commit is contained in:
Matt Rubens 2025-04-21 00:24:52 -04:00 committed by GitHub
parent 19df13c760
commit 29137fbfec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,7 +115,7 @@ export async function writeToFileTool(
cline.consecutiveMistakeCount++
cline.recordToolError("write_to_file")
pushToolResult(await cline.sayAndCreateMissingParamError("write_to_file", "line_count"))
await cline.diffViewProvider.reset()
await cline.diffViewProvider.revertChanges()
return
}