mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-10 00:27:05 -06:00
introduce product.overrides.json
This commit is contained in:
parent
899cdd5ace
commit
d8fccd8a92
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ vscode.lsif
|
||||
vscode.db
|
||||
/.profile-oss
|
||||
/cli/target
|
||||
product.overrides.json
|
||||
|
||||
4
src/bootstrap-amd.js
vendored
4
src/bootstrap-amd.js
vendored
@ -15,7 +15,11 @@ const nodeRequire = require;
|
||||
globalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), { get: (_target, mod) => nodeRequire(String(mod)) });
|
||||
|
||||
// VSCODE_GLOBALS: package/product.json
|
||||
if (process.env['VSCODE_DEV']) {
|
||||
globalThis._VSCODE_PRODUCT_JSON = Object.assign(require('../product.json'), require('../product.overrides.json'));
|
||||
} else {
|
||||
globalThis._VSCODE_PRODUCT_JSON = require('../product.json');
|
||||
}
|
||||
globalThis._VSCODE_PACKAGE_JSON = require('../package.json');
|
||||
|
||||
// @ts-ignore
|
||||
|
||||
4
src/bootstrap-window.js
vendored
4
src/bootstrap-window.js
vendored
@ -117,7 +117,11 @@
|
||||
|
||||
if (!safeProcess.sandboxed) {
|
||||
// VSCODE_GLOBALS: package/product.json
|
||||
if (process.env['VSCODE_DEV']) {
|
||||
globalThis._VSCODE_PRODUCT_JSON = Object.assign((require.__$__nodeRequire ?? require)(configuration.appRoot + '/product.json'), (require.__$__nodeRequire ?? require)(configuration.appRoot + '/product.overrides.json'));
|
||||
} else {
|
||||
globalThis._VSCODE_PRODUCT_JSON = (require.__$__nodeRequire ?? require)(configuration.appRoot + '/product.json');
|
||||
}
|
||||
globalThis._VSCODE_PACKAGE_JSON = (require.__$__nodeRequire ?? require)(configuration.appRoot + '/package.json');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user