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
- 平均合併
- 1 天 12 小時
- 30 天內合併 PR
- 39
環境準備
這個專案沒有提供開發容器、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 天內回覆
-
難度 3/5 1-2 天 新手友好度 50/100
microsoft/vscode-pull-request-github#9063 ·
維護者通常 1 天內回覆
-
Configurable issue completion trigger可能已有人在做 @alexr00 今天認領。 未關閉
microsoft/vscode-pull-request-github#9062 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Add mermaid support or use the same markdown render that is used by vscode可能已有人在做 @alexr00 於 1 天前認領。 未關閉
microsoft/vscode-pull-request-github#9059 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
fix未關閉~spam
難度 4/5 1-2 天 新手友好度 8/100
microsoft/vscode-pull-request-github#9058 ·
維護者通常 1 天內回覆
查看 microsoft/vscode-pull-request-github 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
needs triage
難度 2/5 1-3 小時 新手友好度 76/100
homarr-labs/homarr#7191 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
AvaProtocol/ava-sdk-js#276 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
apollographql/apollo-client#13493 ·
維護者通常 1 天內回覆