don't use __$__nodeRequire to fetch product configuration

This commit is contained in:
Johannes
2022-11-17 15:41:23 +01:00
parent 2d6ad4be88
commit 8dd8d214d8
6 changed files with 28 additions and 12 deletions

View File

@@ -151,6 +151,10 @@ function startup(codeCachePath, nlsConfig) {
}
});
// VSCODE_GLOBALS: package/product.json
globalThis._VSCODE_PRODUCT_JSON = require('../product.json');
globalThis._VSCODE_PACKAGE_JSON = require('../package.json');
// Load main in AMD
perf.mark('code/willLoadMainBundle');
require('./bootstrap-amd').load('vs/code/electron-main/main', () => {