dsh-open-in-vscodeA73
@omdsh-devOpen a workspace directory in VS Code straight from the DeepSeek Harness web GUI: every real Workspace row in the sidebar gains an "Open in VSCode" entry in its "…" overflow menu, and the host spawns the editor CLI detached so the editor outlives the server.
dsh plugin --profile web add github:omdsh-dev/dsh-open-in-vscode
The author hasn't published to npm, so this command installs from git source. pnpm ≥ 10 refuses to run a git dependency's prepare script until you grant it, so your first install needs an allowBuilds entry in that profile's pnpm-workspace.yaml — which means letting this package's code run on your machine. Pin a #commit while you're at it.
The name after --profile is a profile name you choose yourself — swap in whichever one you use.
A small, complete plugin. The client half uses the harness's `sidebar.workspaces.row-menu` slot where available and falls back to a scoped compatibility adapter on the public DSH `0.1.0-rc.6` build — both paths render the same menu row, following the locale: 在 VSCode 中打开 under Chinese, Open in VSCode under English. Clicking the row closes the menu and calls the host over the strict Typert Remote `openInVscode/open`, passing the workspace directory. The host half spawns the configured editor CLI on that directory (`code` by default), detached, so the editor's lifetime is independent of the server. Prerequisites: VS Code, or any editor CLI on PATH that opens a directory. On Windows the default `code` command also discovers standard per-user and system VS Code installations; on macOS you'll want the VS Code shell command installed, or point the plugin's `command` at any editor that opens a directory. Requires DSH `0.1.0-rc.6` or newer — the plugin uses the native Workspace row-menu extension point where present and a compatibility adapter on rc.6. After installing, restart the web server with `kill -TERM` and wait for it to exit — never `kill -9`, which tears the session zstd log mid-frame — then refresh the page.
- ▸Every real Workspace row in the sidebar gains an open entry in its "…" menu, with Chinese and English labels following the UI locale
- ▸Prefers the harness's native `sidebar.workspaces.row-menu` slot, falling back to a scoped compatibility adapter on `0.1.0-rc.6`
- ▸Calls the host over the strict Typert Remote `openInVscode/open` and spawns the editor detached, so it outlives the server
- ▸Defaults to the `code` command, or point the plugin's `command` at any directory-opening editor CLI; restart with `kill -TERM`, never `kill -9`
侧栏工作区一键在 VS Code 打开,槽位+兼容适配双路径,小而精
