Skip to content

Add dsh-dev-git-graph to the tab plugin catalog - #514

Open
kp-z wants to merge 2 commits into
omdsh-dev:mainfrom
kp-z:add-dsh-dev-git-graph
Open

Add dsh-dev-git-graph to the tab plugin catalog#514
kp-z wants to merge 2 commits into
omdsh-dev:mainfrom
kp-z:add-dsh-dev-git-graph

Conversation

@kp-z

@kp-z kp-z commented Sep 2, 2026

Copy link
Copy Markdown

插件信息

生态集成方式

  • ctx.betterSidebar.registerTab(可选探测,peerDependenciesMeta.optional):装了 better-sidebar 注册原生 Git Graph tab(id: dev-git-graphorder: 25single: true),工作区绑定取 scope.repoRoot ?? scope.cwd;未装回退自建右侧 overlay 面板,两者并存(对齐 dsh-flowglass 模式)。
  • 复用内置 DiffTab:graph 内点文件的 viewDiff / viewDiffWithWorkingFile 请求由 host 路由转成同构 SidebarDiffRef 载荷,iframe postMessage 桥到 TabComponentProps.onOpenDiff,由内置 diff tab 渲染(吃到同 id 聚焦 / 已有 diff pane 复用 / 首个拆分行为)。

本 PR 内容

  • src/client/plugins-tabs.ts:按字母序插入 PluginEntry(dsh-better-overleaf 之后、dsh-docs-panel 之前)
  • 20 个 locales 文件补 pluginDevGitGraphDesc(zh/zh-HK/zh-MO/zh-TW 中文文案,其余英文)

校验

  • tests/plugin-list.spec.ts 9 passed ✅
  • tests/plugin-shape.spec.ts 3 passed ✅

kp-z added 2 commits September 2, 2026 17:49
vscode-git-graph port registered as a native sidebar tab (optional peer of
dsh-better-sidebar; overlay fallback without it), auto-bound to the session
workspace, full git operations, file diffs opened in the built-in DiffTab.
Adds PluginEntry + pluginDevGitGraphDesc in all 20 locale files.
…-sidebar tab

Follows plugin 0.1.3: the header button and overlay side panel were removed;
the plugin now requires dsh-better-sidebar and its only UI is the native Git
Graph tab (diffs open in the built-in DiffTab).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant