Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Apr 5, 2023
1 parent 6e99e8a commit 4370b66
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ vscode.lsif
vscode.db
/.profile-oss
/cli/target
product.overrides.json
1 change: 0 additions & 1 deletion product.overrides.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/bootstrap-amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ globalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), { get: (_target
let product = require('../product.json');
if (process.env['VSCODE_DEV']) {
// Patch product overrides when running out of sources
product = Object.assign(product, require('../product.overrides.json'));
try { product = Object.assign(product, require(require('path').join(__dirname, '../product.overrides.json'))); } catch (error) { /* ignore */ }
}
globalThis._VSCODE_PRODUCT_JSON = product;
globalThis._VSCODE_PACKAGE_JSON = require('../package.json');
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
let product = (require.__$__nodeRequire ?? require)(configuration.appRoot + '/product.json');
if (process.env['VSCODE_DEV']) {
// Patch product overrides when running out of sources
product = Object.assign(product, (require.__$__nodeRequire ?? require)(configuration.appRoot + '/product.overrides.json'));
try { product = Object.assign(product, (require.__$__nodeRequire ?? require)(configuration.appRoot + '/product.overrides.json')); } catch (error) { /* ignore */ }
}
globalThis._VSCODE_PRODUCT_JSON = product;
globalThis._VSCODE_PACKAGE_JSON = (require.__$__nodeRequire ?? require)(configuration.appRoot + '/package.json');
Expand Down

0 comments on commit 4370b66

Please sign in to comment.