You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AR: Delete Branch is still shown, with a note that I can exit without deleting the branch. Is it deleted or not?
ER: When the branch is deleted, the UI sets to a welcome state where I can't commit or delete branches that don't exist.
A quick pick showed up a minute later to delete the branch, but clicking it just caused an error in the output:
[Info] PullRequestChangesTreeDataProvider> Error: Cannot resolve tree item for element 0/0:treeView.ts
[Info] GithubRepository> Unable to delete branch: HttpError: Reference does not exist
But even then the UI didn't change.
Refreshing still offers to exit without deleting the branch, but doesn't have a delete branch button anymore:
The text was updated successfully, but these errors were encountered:
Delete Branch is still shown, with a note that I can exit without deleting the branch. Is it deleted or not?
I took a closer look at what's the disabled buttons mean: They are disabled while we try to delete the branch. Disabled does not indicate that the branch has been deleted, rather that the operation is still happening and we don't want to you click additional buttons while we work on it.
I see that this is happening with GitHub Repositories. I think the microsoft/vscode repo has a setting on it that causes PR branches to be deleted when the PR is merged. So, what it looks like is happening here is that the branch got deleted out from under you right after merging.
This is a poor experience. I'll see what we can do to improve it.
The new behavior follows the same pattern as in non remote-repository workspaces: after the branch is deleted you will see the default branch for the repo get checked out. In web, this means there will be a realod.
Steps to Reproduce:
AR: Delete Branch is still shown, with a note that I can exit without deleting the branch. Is it deleted or not?
ER: When the branch is deleted, the UI sets to a welcome state where I can't commit or delete branches that don't exist.
A quick pick showed up a minute later to delete the branch, but clicking it just caused an error in the output:
But even then the UI didn't change.
Refreshing still offers to exit without deleting the branch, but doesn't have a delete branch button anymore:
The text was updated successfully, but these errors were encountered: