-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adds squash merge detection and merge target actions #4125
Conversation
865cada
to
3e14005
Compare
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.
Looks good! Approved with minor tweaks
@@ -1167,6 +1172,87 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe | |||
}); | |||
} | |||
|
|||
private async deleteBranchOrWorktree(ref: BranchRef, mergeTarget?: BranchRef) { |
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.
Is there a confirmation for the delete happening or just the "Proceed" warnings below? If there is no other confirmations, then I think the wording need to be changed from what is below or suggested.
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.
I believe it just starts the "delete branch" flow, which includes quickpick steps/confirmations in it. It would be the same as choosing "delete branch" from a context menu, the only difference being the branch/worktree switch preceding it.
3e14005
to
a2da46c
Compare
Closes #4124
Note: there are known issues with the "delete worktree" case where when the worktree is deleted before deleting the branch, the "delete branch" portion of the commands fail to proceed because the commands are using a worktree path that no longer exists. These should be addressed in follow-up.