We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f3144 commit 1a0223dCopy full SHA for 1a0223d
test/unit/node/index.js
@@ -56,6 +56,22 @@ if (majorRequiredNodeVersion !== currentMajorNodeVersion) {
56
}
57
58
function main() {
59
+
60
+ // VSCODE_GLOBALS: node_modules
61
+ globalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), {
62
+ get(target, mod) {
63
+ if (!target[mod] && typeof mod === 'string') {
64
+ target[mod] = require(mod);
65
+ }
66
+ return target[mod];
67
68
+ });
69
70
+ // VSCODE_GLOBALS: package/product.json
71
+ globalThis._VSCODE_PRODUCT_JSON = require(`${REPO_ROOT}/product.json`);
72
+ globalThis._VSCODE_PACKAGE_JSON = require(`${REPO_ROOT}/package.json`);
73
74
75
process.on('uncaughtException', function (e) {
76
console.error(e.stack || e);
77
});
0 commit comments