electron 22 sandbox - enable for OSS (#175659)

This commit is contained in:
Benjamin Pasero 2023-02-28 16:36:16 +01:00 committed by GitHub
parent 627d6f907b
commit 2551af21f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ export class SharedProcess extends Disposable implements ISharedProcess {
if (typeof sharedProcessUseUtilityProcess === 'boolean') {
useUtilityProcess = sharedProcessUseUtilityProcess;
} else {
useUtilityProcess = typeof product.quality === 'string' && product.quality !== 'stable';
useUtilityProcess = product.quality !== 'stable';
}
return useUtilityProcess;

View file

@ -1327,7 +1327,7 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
if (typeof windowConfig?.experimental?.sharedProcessUseUtilityProcess === 'boolean') {
preferUtilityProcess = windowConfig.experimental.sharedProcessUseUtilityProcess;
} else {
preferUtilityProcess = typeof product.quality === 'string' && product.quality !== 'stable';
preferUtilityProcess = product.quality !== 'stable';
}
// Build up the window configuration from provided options, config and environment

View file

@ -262,7 +262,7 @@ import { applicationConfigurationNodeBase } from 'vs/workbench/common/configurat
'window.experimental.useSandbox': { // TODO@bpasero remove me once sandbox is final
type: 'boolean',
description: localize('experimentalUseSandbox', "Experimental: When enabled, the window will have sandbox mode enabled via Electron API."),
default: typeof product.quality === 'string' && product.quality !== 'stable', // disabled by default in stable for now
default: product.quality !== 'stable', // disabled by default in stable for now
tags: product.quality === 'stable' ? ['experimental'] : undefined,
'scope': ConfigurationScope.APPLICATION,
ignoreSync: true
@ -270,7 +270,7 @@ import { applicationConfigurationNodeBase } from 'vs/workbench/common/configurat
'window.experimental.sharedProcessUseUtilityProcess': { // TODO@bpasero remove me once sandbox is final
type: 'boolean',
description: localize('experimentalUseSharedProcessUseUtilityProcess', "Experimental: When enabled, the window will have sandbox mode enabled via Electron API."),
default: typeof product.quality === 'string' && product.quality !== 'stable', // disabled by default in stable for now
default: product.quality !== 'stable', // disabled by default in stable for now
'scope': ConfigurationScope.APPLICATION,
ignoreSync: true
}