Back to home

Hyna-hla

dsh-vscode

No description

Stars
0
Language
TypeScript
Created
Aug 14, 2026
Updated
Aug 14, 2026

Introduction

dsh-vscode

宿主工具插件:给 DSH 注册 open_in_vscode 工具,直接调用本地 Visual Studio Code。

  • 打开文件或文件夹(相对路径基于当前会话工作区);
  • line/column 跳转到指定位置(--goto file:line:col);
  • diffPath 打开两个文件的对比视图(--diff);
  • wait: true 时等待窗口关闭再返回(默认立即返回)。

之所以做成插件:DSH 的 pwsh 沙盒会拦截工作区外的可执行文件,模型自己敲 code xxx 不可靠;宿主插件直接 spawn Code.exestdio: ignore + detached),不受沙盒限制。

配置

- insert:
    - id: dsh-vscode
      name: dsh-vscode
      config:
        codeExe: ''   # 留空自动探测;可指定 Code.exe 或 bin\code.cmd 路径

自动探测顺序:%LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe%ProgramFiles%%ProgramFiles(x86)% → PATH 上的 code.cmd(经 cmd.exe 启动)。

构建安装

pnpm install
pnpm build
.\scripts\install-to-profile.ps1 -Name dsh-vscode -SourceDir .
# 重启 DeepSeek Harness