sandbox - disable vscode-file:// again (#120655)
This commit is contained in:
parent
ffb7adc71e
commit
2b6df1bba9
3 changed files with 4 additions and 4 deletions
|
@ -175,7 +175,7 @@ function configureCommandlineSwitchesSync(cliArgs) {
|
|||
// Read argv config
|
||||
const argvConfig = readArgvConfigSync();
|
||||
|
||||
let browserCodeLoadingStrategy = 'bypassHeatCheck';
|
||||
let browserCodeLoadingStrategy = undefined;
|
||||
|
||||
Object.keys(argvConfig).forEach(argvKey => {
|
||||
const argvValue = argvConfig[argvKey];
|
||||
|
|
|
@ -63,7 +63,7 @@ if (typeof globals.vscode !== 'undefined') {
|
|||
|
||||
const isElectronRenderer = typeof nodeProcess?.versions?.electron === 'string' && nodeProcess.type === 'renderer';
|
||||
export const isElectronSandboxed = isElectronRenderer && nodeProcess?.sandboxed;
|
||||
export const browserCodeLoadingCacheStrategy: 'none' | 'code' | 'bypassHeatCheck' | 'bypassHeatCheckAndEagerCompile' | undefined = (() => {//
|
||||
export const browserCodeLoadingCacheStrategy: 'none' | 'code' | 'bypassHeatCheck' | 'bypassHeatCheckAndEagerCompile' | undefined = (() => {
|
||||
|
||||
// Always enabled when sandbox is enabled
|
||||
if (isElectronSandboxed) {
|
||||
|
|
|
@ -209,9 +209,9 @@ export class CodeWindow extends Disposable implements ICodeWindow {
|
|||
};
|
||||
|
||||
if (browserCodeLoadingCacheStrategy) {
|
||||
this.logService.trace(`window#ctor: using vscode-file:// protocol and V8 cache options: ${browserCodeLoadingCacheStrategy}`);
|
||||
this.logService.info(`window#ctor: using vscode-file:// protocol and V8 cache options: ${browserCodeLoadingCacheStrategy}`);
|
||||
} else {
|
||||
this.logService.info(`window#ctor: vscode-file:// protocol is explicitly disabled`);
|
||||
this.logService.trace(`window#ctor: vscode-file:// protocol is explicitly disabled`);
|
||||
}
|
||||
|
||||
// Apply icon to window
|
||||
|
|
Loading…
Reference in a new issue