Description
EditTool forcibly converts all CRLF (\r\n) line endings to LF (\n) when reading a file:
currentContent = currentContent.replace(/\r\n/g, '\n');
When the file is written back, this causes the entire file to switch to LF—even if only a single character was edited.
Impact
- Full-file diffs in Git for CRLF-based repos
- ESLint/Prettier errors when CRLF is enforced
- Friction for Windows and cross-platform teams