mirror of
https://github.com/Microsoft/vscode
synced 2024-10-01 08:50:48 +00:00
electron 22 sandbox - enable for OSS (#175659)
This commit is contained in:
parent
627d6f907b
commit
2551af21f8
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue