mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
- update argv directly
- exit at the end
This commit is contained in:
@@ -7,13 +7,12 @@
|
|||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const perf = require('@vscode/vscode-perf');
|
const perf = require('@vscode/vscode-perf');
|
||||||
const minimist = require('minimist');
|
|
||||||
|
|
||||||
const VSCODE_FOLDER = path.join(__dirname, '..');
|
const VSCODE_FOLDER = path.join(__dirname, '..');
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
|
||||||
const args = [...process.argv];
|
const args = process.argv;
|
||||||
/** @type {string | undefined} */
|
/** @type {string | undefined} */
|
||||||
let build = undefined;
|
let build = undefined;
|
||||||
|
|
||||||
@@ -43,10 +42,13 @@ async function main() {
|
|||||||
args.push(path.join(VSCODE_FOLDER, 'package.json'));
|
args.push(path.join(VSCODE_FOLDER, 'package.json'));
|
||||||
}
|
}
|
||||||
|
|
||||||
await perf.run(build ? {
|
if (build) {
|
||||||
...minimist(args),
|
args.push('--build');
|
||||||
build
|
args.push(build);
|
||||||
} : undefined);
|
}
|
||||||
|
|
||||||
|
await perf.run();
|
||||||
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user