-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: Enhance apply_diff with XML for multi-file/multi-diff operations & batch UI #3342
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
|
9b489b7 to
9daa8c9
Compare
|
example of test |
ba38031 to
c764126
Compare
|
Neat! Can writes be confirmed individually? |
Yes, it confirm in each file ( i group diff into each file ) |
8a388c7 to
f6a64e1
Compare
|
This 3342 PR is going to conflict heavily with #3055 any ideas on how to prevent that? |
i will try make a branch merge conflict for you |
036aecc to
b4638b6
Compare
32c49f7 to
6292539
Compare
462f9a0 to
0572b50
Compare
- Introduced a new component `BatchDiffApproval` to handle the approval of batch changes across multiple files. - Integrated the `BatchDiffApproval` component into `ChatRow` to display batch diff requests. - Updated experimental settings to include a toggle for multi-file apply diff functionality. - Enhanced localization files to support new strings related to batch changes in multiple languages. - Updated tests to cover the new multi-file apply diff feature.
0572b50 to
1c5bd66
Compare
…Strategy and MultiFileSearchReplaceDiffStrategy
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.
LGTM
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
|
@daniel-lxs Thank You So Much <3 <3 |
…s & batch UI (#3342) * feat: add BatchDiffApproval component for multi-file diff application - Introduced a new component `BatchDiffApproval` to handle the approval of batch changes across multiple files. - Integrated the `BatchDiffApproval` component into `ChatRow` to display batch diff requests. - Updated experimental settings to include a toggle for multi-file apply diff functionality. - Enhanced localization files to support new strings related to batch changes in multiple languages. - Updated tests to cover the new multi-file apply diff feature. * revert this * fix: update applyDiff parameter type to accept string or DiffItem * refactor: keep original file name for apply diff tool * revert this * Update src/core/webview/__tests__/ClineProvider.test.ts * revert this * fix: keep the original path if the experiment is disabled * test: add dynamic strategy selection tests for MultiSearchReplaceDiffStrategy and MultiFileSearchReplaceDiffStrategy * fix: mock applyDiffTool module and ensure legacy tool resolves successfully in tests * remove this * ellipsis suggestion Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * refactor: mirror concurrent file reads --------- Co-authored-by: Daniel Riccio <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Related GitHub Issue
This pr will fix this issues https://discord.com/channels/1332146336664915968/1367897808249819157
Closes: #2362
Description
Convert to xml tag for all params and support multiple write file
Test Procedure
Type of Change
srcor test files.Pre-Submission Checklist
npm run lint).console.log) has been removed.npm test).mainbranch.npm run changesetif this PR includes user-facing changes or dependency updates.Screenshots / Videos
Documentation Updates
Additional Notes
Important
Enhance
apply_diffwith XML support for multi-file/multi-diff operations and introduce batch UI for improved user interaction.apply_difffunction now supports XML for multi-file/multi-diff operations inmultiApplyDiffTool.ts.BatchDiffApproval.tsx.applyDiffToolrenamed toapplyDiffToolLegacy.MULTI_FILE_APPLY_DIFFadded toexperiments.tsand related files.Task.tsandgenerateSystemPrompt.ts.applyDiffTool.experiment.spec.tsandTask.test.ts.BatchDiffApproval.tsx.This description was created by
for b7e3202. You can customize this summary. It will automatically update as commits are pushed.