插件目录 / Network / dsh-open-in-vscode
dsh-open-in-vscode
已验证 · 实测可装 omdsh-dev
功能简介
直接从 Web 界面在 VS Code 中打开 DeepSeek Harness 工作区目录。
可用 — 实测通过,社区增长中
直接从 Web 界面在 VS Code 中打开 DeepSeek Harness 工作区目录。 实测能干净安装、正常启动。社区在增长,是个稳妥选择。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-open-in-vscode
Open 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 row
inside its … overflow menu.
What it does
- The client half uses the harness's
sidebar.workspaces.row-menuslot when
available and falls back to a scoped compatibility adapter on the public
DSH0.1.0-rc.6build. Both paths render the same locale-following menu row
— 在 VSCode 中打开 under the Chinese locale, Open in VSCode under
English. - The row's click closes the menu and calls the host over the strict Typert
RemoteopenInVscode/open, passing the workspace directory. - The host half spawns the configured editor CLI on that directory
(code <path>by default), detached, so the editor outlives the server.
Prerequisites
- VS Code, or an editor CLI on PATH. On Windows, the default
codecommand
also discovers standard per-user and system VS Code installations. On macOS,
install the
VS Code shell command
or set the plugincommandto any editor that opens a directory). - DSH
0.1.0-rc.6or newer. The plugin uses the native Workspace row-menu
extension point where present and a compatibility adapter onrc.6.
Install
Add the plugin to your web profile (this runs pnpm inside the profile and
reconciles the bundle layer):
dsh plugin --profile web add https://github.com/omdsh-dev/dsh-open-in-vscode/archive/refs/tags/v0.1.6.tar.gz
Restart the web server (kill -TERM <pid> and wait for exit — neverkill -9, it tears the session zstd log mid-frame), then refresh the page.
The host plugin mounts under dsh-open-in-vscode; the client bundle is
served at /plugins/dsh-open-in-vscode/client.js.
The versioned tarball replaces older pinned commits without running a gitprepare script. Confirm the installed version with:
dsh plugin --profile web list dsh-open-in-vscode --depth 0
Configuration
Deployment-varying choices are validated Config fields, changeable from
cordis.yml:
| Key | Default | Meaning |
|---|---|---|
command |
code |
Executable that opens a directory. The default also probes standard Windows VS Code install locations; other commands resolve through PATH. |
args |
[] |
Extra arguments passed before the directory path. |
A missing executable fails loud with a fix hint; relative paths are refused.
Capability boundary
| Action | Runs where | Requires approval |
|---|---|---|
| Open a workspace directory in the editor | Host (user gesture) | No — the user clicked the row |
| Anything else | — | The plugin has no tools, no settings namespace, and no model-facing surface |
The plugin adds no tools, no skills, and no settings; it only opens the
directory the user already opened in DSH. It never reads or writes files
itself.
Development
pnpm install
pnpm run check # typecheck + lint + test + build; commit lib/ (file: installs run without a build)
Layout: the wire contract lives in one module (src/contract.ts) shared by
the host manifest (src/typert.ts) and the client contribution
(src/client/remote.ts); the harness owns the slot declaration and the
Menu node-entry kind this plugin composes through.
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-open-in-vscode」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:omdsh-dev/dsh-open-in-vscode Headless(CLI)profile:
dsh plugin --profile headless add github:omdsh-dev/dsh-open-in-vscode 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
从 web GUI 一键跳进 VS Code 的当前工作区目录,从聊天到编辑器一步到位。
适合谁
在 web UI 里浏览聊天、却真正在 VS Code 里编辑的人。
二次开发建议
把 open-in-editor 桥泛化到其他编辑器和 IDE 远程协议。