提交 6e5cc36e 编写于 作者: J Joao Moreno

env cleanup

上级 90e331c7
......@@ -173,7 +173,7 @@ export class EnvService implements IEnvironmentService {
// Remove the Electron executable
let [, ...args] = process.argv;
// Id dev, remove the first argument: it's the app location
// If dev, remove the first argument: it's the app location
if (!this.isBuilt) {
[, ...args] = args;
}
......@@ -184,10 +184,6 @@ export class EnvService implements IEnvironmentService {
args = [...extraargs, ...args];
}
const opts = parseOpts(args);
const gotoLineMode = !!opts['g'] || !!opts['goto'];
const debugBrkExtensionHostPort = parseNumber(args, '--debugBrkPluginHost', 5870);
let debugExtensionHostPort: number;
let debugBrkExtensionHost: boolean;
......@@ -199,6 +195,8 @@ export class EnvService implements IEnvironmentService {
debugExtensionHostPort = parseNumber(args, '--debugPluginHost', 5870, this.isBuilt ? void 0 : 5870);
}
const opts = parseOpts(args);
const gotoLineMode = !!opts['g'] || !!opts['goto'];
const pathArguments = parsePathArguments(this._currentWorkingDirectory, args, gotoLineMode);
this._cliArgs = Object.freeze({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册