Add dsh-dev-git-graph to the tab plugin catalog - #514
Open
kp-z wants to merge 2 commits into
Open
Conversation
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).
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.
插件信息
dsh-better-sidebar)dsh-dev-git-graph@0.1.1cd ~/.dsh && dsh plugin --profile web add dsh-better-sidebar && dsh plugin --profile web add dsh-dev-git-graph生态集成方式
ctx.betterSidebar.registerTab(可选探测,peerDependenciesMeta.optional):装了 better-sidebar 注册原生 Git Graph tab(id: dev-git-graph、order: 25、single: true),工作区绑定取scope.repoRoot ?? scope.cwd;未装回退自建右侧 overlay 面板,两者并存(对齐 dsh-flowglass 模式)。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 之前)pluginDevGitGraphDesc(zh/zh-HK/zh-MO/zh-TW 中文文案,其余英文)校验
tests/plugin-list.spec.ts9 passed ✅tests/plugin-shape.spec.ts3 passed ✅