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

properly use paths

上级 e0a3f26e
......@@ -9,7 +9,7 @@ import * as objects from 'vs/base/common/objects';
import { Action } from 'vs/base/common/actions';
import * as errors from 'vs/base/common/errors';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { formatPII } from 'vs/workbench/parts/debug/common/debugUtils';
import { formatPII, isUri } from 'vs/workbench/parts/debug/common/debugUtils';
import { IDebugAdapter, IConfig, AdapterEndEvent, IDebugger } from 'vs/workbench/parts/debug/common/debug';
import { createErrorWithActions } from 'vs/base/common/errorsWithActions';
import * as cp from 'child_process';
......@@ -558,7 +558,12 @@ export class RawDebugSession {
spawnOpts.env = envArgs;
}
let spawnArgs = vscodeArgs.args.map(a => (a.prefix || '') + (a.path || ''));
let spawnArgs = vscodeArgs.args.map(a => {
if ((a.prefix === '--file-uri=' || a.prefix === '--folder-uri=') && !isUri(a.path)) {
return a.path;
}
return (a.prefix || '') + (a.path || '');
});
let runtimeExecutable = this.environmentService['execPath'];
if (!runtimeExecutable) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册