跳到正文

omdsh-dev/dsh-open-in-vscode

464最近提交 2026年8月13日

dsh-open-in-vscode DSH 插件

在侧边栏的每个工作区行中添加一个“在 VSCode 中打开”的菜单项。客户端根据语言环境显示对应文本,主机端调用配置的编辑器命令打开目录。兼容 DSH 0.1.0-rc.6 及以上版本。

如何安装 dsh-open-in-vscode DSH 插件

dsh plugin --profile web add https://github.com/omdsh-dev/dsh-open-in-vscode/archive/refs/tags/v0.1.6.tar.gz

复制不会执行命令。安装 dsh-open-in-vscode DSH 插件前请核对仓库和版本。

dsh-open-in-vscode DSH 插件数据来源

dsh-open-in-vscode DSH 插件快照日期:2026年8月16日

discovered

dsh-open-in-vscode DSH 插件能做什么

  • 在工作区溢出菜单中添加“在 VSCode 中打开”行
  • 自动支持中文和英文语言环境
  • 优先使用 harness 原生插槽,在 rc.6 上使用兼容适配器
  • 可通过 cordis.yml 配置编辑器命令和额外参数
  • 分离进程启动,确保编辑器在服务器关闭后继续运行

dsh-open-in-vscode DSH 插件适合哪些场景

  • 从 DSH Web 界面快速将工作区目录在本地 VS Code 中打开
  • 不离开浏览器即可处理多个工作区
  • 将 DSH 工作区管理与本地 IDE 工作流集成
  • 团队成员可各自在本地编辑器打开同一工作区
  • 偏好 VS Code 的开发者可以无缝从 DSH 访问项目

dsh-open-in-vscode DSH 插件适合谁

  • 以 VS Code 为主要编辑器的 DSH 用户
  • 通过 DeepSeek Harness 管理多个工作区的开发者

dsh-open-in-vscode DSH 插件的限制

  • 需要 DSH 0.1.0-rc.6 或更高版本
  • 必须安装 VS Code(或配置的其他编辑器)并将命令所在路径加入 PATH
  • 在 macOS 上需额外通过命令面板安装 VS Code shell 命令
  • 插件仅用于打开目录,没有工具、技能或文件读写功能
  • 配置中的相对路径会被拒绝

dsh-open-in-vscode DSH 插件的仓库 README 摘录

以下文字摘自 dsh-open-in-vscode DSH 插件的上游仓库 omdsh-dev/dsh-open-in-vscode 的 README,版权归原作者,仅作引用。

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-menu` slot when available and falls back to a scoped compatibility adapter on the public DSH `0.1.0-rc.6` build. 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 Remote `openInVscode/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 `code` command also discovers standard per-user and system VS Code installations. On macOS, install the [VS Code shell command](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line) or set the plugin `command` to any editor that opens a directory). - DSH `0.1.0-rc.6` or newer. The plugin

阅读完整 README仓库许可: MIT

dsh-open-in-vscode DSH 插件常见问题

如何安装 dsh-open-in-vscode?

在 DSH 环境中运行 `dsh plugin --profile web add https://github.com/omdsh-dev/dsh-open-in-vscode/archive/refs/tags/v0.1.6.tar.gz`。然后使用 `kill -TERM <pid>` 重启 web 服务器,等待进程退出后再刷新页面。主机插件会挂载到 `dsh-open-in-vscode`,客户端 bundle 会在 `/plugins/dsh-open-in-vscode/client.js` 提供。

需要什么版本的 DSH?

需要 DSH 0.1.0-rc.6 或更高版本。插件在可用时使用原生工作区行菜单扩展点,在 rc.6 上会回退到兼容适配器。不支持更早的版本。

能否使用 VS Code 以外的编辑器?

可以。你可以在 cordis.yml 中设置 `command` 字段来配置任何编辑器命令。例如,可以使用 `subl`(Sublime Text)或 `cursor`(Cursor)。命令必须在 PATH 中,或者提供绝对路径。默认值是 `code`,它还会在 Windows 上自动探测标准 VS Code 安装位置。

这个插件会读写我的文件吗?

不会。插件只会在配置的编辑器中打开工作区目录。它本身不读写任何文件。插件没有工具、没有设置命名空间、没有面向模型的接口。唯一的操作是通过 CLI 命令打开目录,且需要用户点击菜单项才能触发。

如何验证插件是否安装成功?

运行 `dsh plugin --profile web list dsh-open-in-vscode --depth 0` 可查看已安装的版本。重启 web 服务器并刷新页面后,在侧边栏的每个工作区行的溢出菜单中应该能看到“在 VSCode 中打开”(中文环境)或“Open in VSCode”(英文环境)的选项。