Branch deletion modal (0.168.0): "Delete All" reads as deleting the repository, and single deletes need two trips
维护者通常 1 天内回复
@alexr00 已经在做这个了。
开始于 2026年10月13日。
评估
这个 Issue 还没有评估数据。
描述
The branch-deletion modal added in 0.168.0 ("Show branch deletion options in a modal dialog after merging a pull request") makes the most common cleanup harder and makes the safe option look dangerous.
What happens
After merging a PR, clicking Delete Branch... opens:
Choose what to delete for Pull Request #36
Choose an action below to clean up the resources associated with this pull request.
Remote branch: origin/feature-branch
Remote repository: https://github.com/owner/repo
Local branch: feature-branch
[Cancel] [Delete Local Branch] [Delete Remote Branch] [Delete All]
Two problems:
1. "Delete All" reads as "delete the repository too"
The detail text lists three things (remote branch, remote repository, local branch), and the button below says Delete All. Read together, that suggests the repository gets deleted. From the source, it doesn't: the Remote repository: line only shows where the remote branch lives, and Delete All runs the remoteHead and local actions. But nothing in the dialog says so, and nobody should have to read the source to find out whether a button deletes their repo.
So the one-click path, which is what the old checkboxes did by default, is the one a careful user avoids.
2. Without "Delete All", it takes two trips through the dialog
Each per-item button closes the modal. To delete both branches without clicking Delete All, you have to:
- click Delete Branch..., choose Delete Local Branch
- click Delete Branch... again, choose Delete Remote Branch
Before 0.168.0 this was one quick pick with both branches checked by default, and you could confirm or untick either one.
Suggestions
Any of these would fix it:
- Drop the
Remote repository:line, or fold it into the branch line (e.g.Remote branch: origin/feature-branch (owner/repo)), so the list only contains things that can actually be deleted. - Label the combined button by what it deletes, e.g. Delete Local and Remote Branches, and not Delete All.
- Or go back to the multi-select quick pick, which handled both cases in one step.
Environment
- GitHub Pull Requests extension: 0.168.0 (not present in 0.166.1)
- VS Code: 1.141.0
- macOS 26.6.2
- 主要语言
- TypeScript
- 星标
- 2.6k
- 派生
- 805
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 43
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/vscode-pull-request-github 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/vscode-pull-request-github#8792 ·
维护者通常 1 天内回复
-
Feature request: expose an MCP server so AI agents can interact with PRs and issues可能已有人在做 @alexr00 于 1 天前认领。 未关闭
microsoft/vscode-pull-request-github#9070 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
GitHub releases lag behind VS Code Marketplace by multiple versions可能已有人在做 @alexr00 于 1 天前认领。 未关闭
microsoft/vscode-pull-request-github#9069 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Review requests and review dismissals are missing from the PR conversation timeline可能已有人在做 @alexr00 于 1 天前认领。 未关闭
microsoft/vscode-pull-request-github#9068 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Webview L10n可能已有人在做 @alexr00 于 1 天前认领。 未关闭
microsoft/vscode-pull-request-github#9067 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 microsoft/vscode-pull-request-github 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
agilepathway/label-checker#739 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
CopilotKit/OpenBot#800 ·
维护者通常 1 天内回复
-
Endpoint links in the tag operations list are below the 24px target size可能已有人在做 @AdzerKI 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复