提交 a8b7d133 编写于 作者: A Andre Weinand

only look for folder arguments: fixes #69007

上级 1aee0c19
......@@ -581,8 +581,8 @@ export class RawDebugSession {
// guess the VS Code workspace path from the executable
const vscodeWorkspacePath = runtimeExecutable.substr(0, electronIdx);
// only add path if user hasn't already added that path
const x = spawnArgs.filter(a => a.indexOf(vscodeWorkspacePath) >= 0);
// only add VS Code workspace path if user hasn't already added that path as a (folder) argument
const x = spawnArgs.filter(a => a.indexOf(vscodeWorkspacePath) === 0);
if (x.length === 0) {
spawnArgs.unshift(vscodeWorkspacePath);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册