mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
parent
65d0130a5c
commit
0ccae8afbd
|
@ -19,6 +19,7 @@ const bootstrapNode = require('./bootstrap-node');
|
|||
const product = require('../product.json');
|
||||
|
||||
// Enable portable support
|
||||
// @ts-ignore
|
||||
bootstrapNode.configurePortable(product);
|
||||
|
||||
// Enable ASAR support
|
||||
|
|
|
@ -24,6 +24,7 @@ const { getUserDataPath } = require('./vs/platform/environment/node/userDataPath
|
|||
const { stripComments } = require('./vs/base/common/stripComments');
|
||||
const { getUNCHost, addUNCHostToAllowlist } = require('./vs/base/node/unc');
|
||||
/** @type {Partial<IProductConfiguration>} */
|
||||
// @ts-ignore
|
||||
const product = require('../product.json');
|
||||
const { app, protocol, crashReporter, Menu } = require('electron');
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ suite('parseArgs', () => {
|
|||
_: { type: 'string[]' }
|
||||
}),
|
||||
_: { type: 'string[]' }
|
||||
} satisfies OptionDescriptions<TestArgs1>;
|
||||
} as OptionDescriptions<TestArgs1>;
|
||||
assertParse(
|
||||
options1,
|
||||
['testcmd', '--testArg=foo'],
|
||||
|
@ -148,7 +148,7 @@ suite('parseArgs', () => {
|
|||
}),
|
||||
testX: { type: 'boolean', global: true, description: '' },
|
||||
_: { type: 'string[]' }
|
||||
} satisfies OptionDescriptions<TestArgs2>;
|
||||
} as OptionDescriptions<TestArgs2>;
|
||||
assertParse(
|
||||
options2,
|
||||
['testcmd', '--testArg=foo', '--testX'],
|
||||
|
|
Loading…
Reference in a new issue