-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: Add file-based editing mode to bypass diff view (#6001) #6002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Created IEditingProvider interface to abstract file editing operations - Implemented FileWriter class for direct file system writes without diff view - Updated Task class to use IEditingProvider interface instead of DiffViewProvider directly - Added fileBasedEditing setting to global settings and UI - Updated all file editing tools to use the new interface - Added comprehensive tests for FileWriter class - Updated existing tests to work with the new interface This feature allows users to skip the diff view and apply edits directly to files, which is useful for users who prefer to review changes in their own editor or version control system.
- Added fileEditing section to navigation menu in all languages - Added complete fileEditing configuration translations - Maintains consistency across all 17 language files - Fixes failing translation check in CI
| "language": "语言", | ||
| "about": "关于 Roo Code" | ||
| "about": "关于 Roo Code", | ||
| "fileEditing": "File Editing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new fileEditing key (and its subkeys) is still in English. For a proper localized user experience, please translate these strings into Chinese. For example, replace 'Enable file-based editing mode' and 'Show diff view' with appropriate Chinese translations.
| "fileEditing": "File Editing" | |
| "fileEditing": "文件编辑" |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
| "language": "語言", | ||
| "about": "關於 Roo Code" | ||
| "about": "關於 Roo Code", | ||
| "fileEditing": "File Editing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new fileEditing key (and related labels) remains in English. Please provide Traditional Chinese translations for these file-based editing mode texts to ensure full localization.
| "fileEditing": "File Editing" | |
| "fileEditing": "檔案編輯" |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
|
To be implemented by @felixAnhalt, closing |
Implements file-based editing mode that allows users to bypass the diff view and apply edits directly to files.
See issue #6001 for details.
Changes:
When enabled, file edits are written directly without showing the diff view.
Important
Introduces file-based editing mode for direct file writes, bypassing diff view, with new interface, class, and settings updates.
fileBasedEditingsetting inglobal-settings.tsand UI components.IEditingProviderinterface for file editing operations.FileWriterclass for direct file system writes.Taskclass to useIEditingProviderinstead ofDiffViewProvider.FileWriterinFileWriter.spec.ts.fileBasedEditingoption.webviewMessageHandler.tsto handlefileBasedEditingsetting changes.diffViewProvidertoeditingProviderin multiple files.This description was created by
for 4bac5aa. You can customize this summary. It will automatically update as commits are pushed.