Latest update breaks due to proxy requirement. Fixes #142201

This commit is contained in:
Martin Aeschlimann
2022-02-07 21:04:19 +01:00
parent 284422f91d
commit 6fc45ef5c7
2 changed files with 7 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ import 'vs/workbench/api/node/extHost.node.services';
interface ParsedExtHostArgs {
transformURIs?: boolean;
skipWorkspaceStorageLock?: boolean;
useHostProxy?: boolean;
useHostProxy?: 'true' | 'false'; // use a string, as undefined is also a valid value
}
// workaround for https://github.com/microsoft/vscode/issues/85490
@@ -47,8 +47,10 @@ interface ParsedExtHostArgs {
const args = minimist(process.argv.slice(2), {
boolean: [
'transformURIs',
'skipWorkspaceStorageLock',
'useHostProxy'
'skipWorkspaceStorageLock'
],
string: [
'useHostProxy' // 'true' | 'false' | undefined
]
}) as ParsedExtHostArgs;
@@ -334,7 +336,7 @@ export async function startExtensionHostProcess(): Promise<void> {
const { initData } = renderer;
// setup things
patchProcess(!!initData.environment.extensionTestsLocationURI); // to support other test frameworks like Jasmin that use process.exit (https://github.com/microsoft/vscode/issues/37708)
initData.environment.useHostProxy = !!args.useHostProxy;
initData.environment.useHostProxy = args.useHostProxy !== undefined ? args.useHostProxy !== 'false' : undefined;
initData.environment.skipWorkspaceStorageLock = boolean(args.skipWorkspaceStorageLock, false);
// host abstraction