continue-custom/extensions
Patrick Erichsen ebded1fc67 Add autoformatting detection for edit tools
Implement autoformatting detection similar to Cline's approach to improve reliability of edit operations. When edit tools (multiEdit/editFile) are executed, the system now captures file content before and after save operations to detect editor autoformatting changes.

Key changes:
- Add `createPrettyPatch` utility using existing `myersDiff` function
- Capture pre/post save content in `processDiff.ts`
- Add `autoFormattingDiff` field to `ApplyState` protocol
- Include autoformatting diff in tool responses with guidance for language model
- Help prevent future edit failures due to undetected formatting changes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 11:11:04 -07:00
..
cli Merge pull request #7558 from continuedev/tomasz/con-3679 2025-09-04 15:14:02 -07:00
intellij fix: open file on EDT 2025-09-04 20:58:13 +02:00
vscode Add autoformatting detection for edit tools 2025-09-09 11:11:04 -07:00