-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support moving or copying changes for worktree #2547
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR enhances the Copilot CLI chat session worktree feature by allowing users to choose between moving or copying uncommitted changes when creating an isolated worktree. Previously, users could only "Include Changes" (which moved them). Now users are presented with two distinct options: "Move Changes" (deletes from source) and "Copy Changes" (keeps in source).
Key Changes
- Replaced single "Include Changes" button with "Move Changes" and "Copy Changes" options
- Refactored confirmation handling logic by renaming
handlePushConfirmationDatatogenerateConfirmationResponseIfNeededand extractinggenerateUncommittedChangesConfirmation - Updated the git migration logic to conditionally delete from source based on user choice
src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts
Outdated
Show resolved
Hide resolved
src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts
Show resolved
Hide resolved
…ontribution.ts Co-authored-by: Copilot <[email protected]>
Merge branch 'osortega/added-guineafowl' of https://github.com/microsoft/vscode-copilot-chat into osortega/added-guineafowl
Ref: microsoft/vscode#281572