sandbox - prefer sandbox types over node.js types

This commit is contained in:
Benjamin Pasero
2021-04-06 09:51:14 +02:00
parent 584d0acaf1
commit 30f0d188c7
4 changed files with 26 additions and 26 deletions

View File

@@ -22,7 +22,7 @@
}
}(this, function () {
const bootstrapLib = bootstrap();
const preloadGlobals = globals();
const preloadGlobals = sandboxGlobals();
const safeProcess = preloadGlobals.process;
const useCustomProtocol = safeProcess.sandboxed || typeof safeProcess.env['ENABLE_VSCODE_BROWSER_CODE_LOADING'] === 'string';
@@ -262,7 +262,7 @@
/**
* @return {typeof import('./vs/base/parts/sandbox/electron-sandbox/globals')}
*/
function globals() {
function sandboxGlobals() {
// @ts-ignore (defined in globals.js)
return window.vscode;
}