feat(Views): 视图容器迁移至底部 Panel(Terminal 之后) v0.0.13 - #80
Merged
ThreeFish-AI merged 1 commit intoJul 5, 2026
Conversation
将 package.json 的 viewsContainers 由 activitybar 改为 panel,容器 id hyper-git 与全部 7 个视图(Commit / Graph / Branches / Stash / Shelf / Worktrees / changesBadge)不变;.ts 源码与图标无需改动(dock 类型与 views 归属、API 调用、图标规范完全解耦)。initialSize 语义随之由侧边栏高度权重变为 Panel 主轴权重,值本身不改。 Trade-off:活动栏「始终可见」未提交角标随之失效(issue #10),未提交计数仅在 Panel 展开时可见(VS Code 平台行为);老用户升级需「View: Reset View Locations」采用新默认(issue #12)。详见 docs/.agents/issue.md #13。 配套同步:CHANGELOG v0.0.13、Release Note v0.0.13、issue #13、knowledge-map 最新 release 链接、extension.ts 三处注释措辞。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动摘要
将 Hyper Git 视图容器从活动栏(Activity Bar / Primary Side Bar)迁移至底部面板(Panel),默认排在 Terminal 页签之后。
package.json:51单行"activitybar"→"panel";版本号0.0.12→0.0.13。hyper-git与全部 7 个视图(Commit / Graph / Branches / Stash / Shelf / Worktrees / changesBadge)不变;.ts源码、media/hyper-git-icon.svg(24×24 单色)均无需改动——dock 类型与 views 归属、API 调用、图标规范完全解耦。extension.ts三处注释措辞同步。为什么
用户诉求:将 Hyper Git 从默认的左侧活动栏迁移到底部面板,与官方 Terminal / Output / Problems 提供一致的底部停靠体验。
Trade-off(已与用户确认接受)
迁移后活动栏不再保留 Hyper Git 入口图标,issue #10 修复的「面板未打开也持续显示」未提交计数角标随之失效——未提交计数仅在 Panel 展开时可见。这是 VS Code 平台行为:activitybar 容器图标支持「未聚焦也聚合」的一等 badge,panel 容器页签 badge 受 Panel 展开/收起态约束。用户经评估后明确接受此 trade-off,不引入双容器或状态栏计数器补救。详见 issue #13。
页签顺序
VS Code 平台不提供精确控制 Panel 内页签顺序的 contribution point;新安装扩展的容器默认追加在内置页签(Terminal / Output / Problems / Debug Console)之后。如需紧邻 Terminal,可在 Panel 页签栏拖拽微调,VS Code 会持久化。
老用户兼容
VS Code 会记忆旧的 activitybar 位置,从 v0.0.12 升级后 Hyper Git 可能仍出现在活动栏。执行以下任一操作即可采用新的 Panel 默认:
Cmd/Ctrl + Shift + P)→ 「View: Reset View Locations」;无破坏性变更:
viewType、消息协议、webview.setState形状、配置项全部不变,旧状态无需迁移。验证
pnpm run compile(check-types + lint + esbuild)零错误不在本次范围
initialSize值调整(语义从高度权重变主轴权重,值不改;若实测水平 Panel 下视图过挤,作为独立后续 PR)🤖 Generated with Claude Code