Hyna-hla/dsh-vscode

Hyna-hla★ 0TypeScript最后同步: 2026-08-14

在 GitHub 打开

README 摘要

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.exe ( stdio: ignore + detached),不受沙盒限制。 配置 自动探测顺序: %LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe → %ProgramFiles% → %ProgramFiles(x86)% → PATH 上的 code.cmd (经 cmd.exe 启动)。 构建安装

在 GitHub 查看完整 README →
工具/开发dsh-pluginvscode

分类