feat(mod_format): feat(mod_format): use unified diff formatter with filenames and context in BaseFormatter.displayDiff

This commit is contained in:
2025-12-15 17:24:17 +00:00
parent 4bb1a2f8c7
commit 601e0d1063
3 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-12-15 - 2.11.0 - feat(mod_format)
feat(mod_format): use unified diff formatter with filenames and context in BaseFormatter.displayDiff
- Replaced plugins.smartdiff.formatLineDiffForConsole(...) with plugins.smartdiff.formatUnifiedDiffForConsole(...) when both before and after are present.
- Passes originalFileName and revisedFileName as diff.path and sets context to 3 to show a unified diff with surrounding lines.
- Improves console output for multi-line diffs by using unified diff format and including file names.
## 2025-12-15 - 2.10.0 - feat(mod_format)
Refactor formatting modules to new BaseFormatter and implement concrete analyze/apply logic