Repository navigation
[Bug][Windows Desktop 0.2.2-rc.3] Open in → VS Code fails; existing ELECTRON_RUN_AS_NODE fix missing from release #13493
Replies: 1 comment
v0.2.2-rc.4 (2026-11-17) still does not contain the fixConfirming this on the desktop build: Evidence
Note the fix commit predates both rc.3 (11-13) and rc.4 (11-17) — Local confirmation (Windows x64, desktop runtime 0.2.2-rc.3) Bundled Exit code 1 after ~244 ms — far inside the plugin's Request Same ask as the original report, now with rc.4 ruled out: please state which released desktop build will first contain Affected in practice: VS Code, VS Code Insiders, Cursor, Windsurf (any Electron-based editor). Unaffected: Explorer, Git Bash, Windows Terminal (non-Electron), and GitHub Desktop (sets the variable explicitly). AI-assisted: drafted with an AI agent running in DSH on the reporter's machine; version comparisons and the reproduction above were executed there and reviewed before posting. |
Uh oh!
There was an error while loading. Please reload this page.
问题 / Summary
Windows Desktop 0.2.2-rc.3 中,点击会话菜单 Open in → VS Code,出现
Could not open. Try again.,无法通过该菜单打开项目。VS Code 已安装并运行,code.cmd 可正常找到。复现步骤
Could not open. Try again.。预期:VS Code 打开当前工作区目录。
已收集的证据
ELECTRON_RUN_AS_NODE=1。Code.exe <workspace>,可复现Error: Cannot find module '<workspace>'/MODULE_NOT_FOUND,退出码 1。这里的工作区路径已脱敏。code.cmd <workspace>返回 0,可作为临时绕过方式。@deepseek-ai/dsh-host-open-in-app/src/resolver.ts中,launchDetachedApp 仍使用env: { ...scrubbedParentEnv(), ...options.env },没有清除继承的 ELECTRON_RUN_AS_NODE。已有上游修复,但发布版尚未包含
已找到完全对应的修复:
通过 GitHub Contents API 核对,当前默认分支的 resolver.ts 已过滤 ELECTRON_RUN_AS_NODE,但 dsh-v0.2.2-rc.3 标签的同一文件仍保留旧逻辑,与本地安装包一致。截至 2026-11-16 查询,最新公开 Release 仍为 0.2.2-rc.3。
请求
请将该修复纳入下一个 Windows Desktop 发布版或回补到维护版本,并明确首个包含修复的版本。当前重新安装 rc.3 不会带来这项修复。若已有包含修复的官方安装包,请提供对应版本/下载入口。
This report concerns shipping/backporting the existing fix, rather than proposing a duplicate implementation. Thank you.
All reactions