mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
fix: loading minimist in packaged builds (#184915)
This commit is contained in:
parent
f660240526
commit
bfffb9d8ab
12
src/main.js
12
src/main.js
|
@ -27,18 +27,18 @@ const { getUNCHost, addUNCHostToAllowlist } = require('./vs/base/node/unc');
|
|||
const product = require('../product.json');
|
||||
const { app, protocol, crashReporter, Menu } = require('electron');
|
||||
|
||||
// Enable sandbox globally unless disabled via `--no-sandbox` argument
|
||||
const args = parseCLIArgs();
|
||||
if (args['sandbox']) {
|
||||
app.enableSandbox();
|
||||
}
|
||||
|
||||
// Enable portable support
|
||||
const portable = bootstrapNode.configurePortable(product);
|
||||
|
||||
// Enable ASAR support
|
||||
bootstrap.enableASARSupport();
|
||||
|
||||
// Enable sandbox globally unless disabled via `--no-sandbox` argument
|
||||
const args = parseCLIArgs();
|
||||
if (args['sandbox']) {
|
||||
app.enableSandbox();
|
||||
}
|
||||
|
||||
// Set userData path before app 'ready' event
|
||||
const userDataPath = getUserDataPath(args, product.nameShort ?? 'code-oss-dev');
|
||||
if (process.platform === 'win32') {
|
||||
|
|
Loading…
Reference in a new issue