File tree Expand file tree Collapse file tree 4 files changed +7
-21
lines changed Expand file tree Collapse file tree 4 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 11
11
// when this file is bundled with other files.
12
12
const nodeRequire = require ;
13
13
14
+ // VSCODE_GLOBALS: node_modules
15
+ globalThis . _VSCODE_NODE_MODULES = new Proxy ( Object . create ( null ) , { get : ( _target , mod ) => nodeRequire ( String ( mod ) ) } ) ;
16
+
17
+ // VSCODE_GLOBALS: package/product.json
18
+ globalThis . _VSCODE_PRODUCT_JSON = require ( '../product.json' ) ;
19
+ globalThis . _VSCODE_PACKAGE_JSON = require ( '../package.json' ) ;
20
+
14
21
const loader = require ( './vs/loader' ) ;
15
22
const bootstrap = require ( './bootstrap' ) ;
16
23
const performance = require ( './vs/base/common/performance' ) ;
Original file line number Diff line number Diff line change @@ -37,13 +37,6 @@ if (process.env['VSCODE_PARENT_PID']) {
37
37
terminateWhenParentTerminates ( ) ;
38
38
}
39
39
40
- // VSCODE_GLOBALS: node_modules
41
- globalThis . _VSCODE_NODE_MODULES = new Proxy ( Object . create ( null ) , { get : ( _target , mod ) => require ( String ( mod ) ) } ) ;
42
-
43
- // VSCODE_GLOBALS: package/product.json
44
- globalThis . _VSCODE_PRODUCT_JSON = require ( '../product.json' ) ;
45
- globalThis . _VSCODE_PACKAGE_JSON = require ( '../package.json' ) ;
46
-
47
40
// Load AMD entry point
48
41
require ( './bootstrap-amd' ) . load ( process . env [ 'VSCODE_AMD_ENTRYPOINT' ] ) ;
49
42
Original file line number Diff line number Diff line change @@ -141,13 +141,6 @@ function startup(codeCachePath, nlsConfig) {
141
141
process . env [ 'VSCODE_NLS_CONFIG' ] = JSON . stringify ( nlsConfig ) ;
142
142
process . env [ 'VSCODE_CODE_CACHE_PATH' ] = codeCachePath || '' ;
143
143
144
- // VSCODE_GLOBALS: node_modules
145
- globalThis . _VSCODE_NODE_MODULES = new Proxy ( Object . create ( null ) , { get : ( _target , mod ) => require ( String ( mod ) ) } ) ;
146
-
147
- // VSCODE_GLOBALS: package/product.json
148
- globalThis . _VSCODE_PRODUCT_JSON = require ( '../product.json' ) ;
149
- globalThis . _VSCODE_PACKAGE_JSON = require ( '../package.json' ) ;
150
-
151
144
// Load main in AMD
152
145
perf . mark ( 'code/willLoadMainBundle' ) ;
153
146
require ( './bootstrap-amd' ) . load ( 'vs/code/electron-main/main' , ( ) => {
Original file line number Diff line number Diff line change @@ -259,13 +259,6 @@ function loadCode() {
259
259
return new Promise ( ( resolve , reject ) => {
260
260
const path = require ( 'path' ) ;
261
261
262
- // VSCODE_GLOBALS: node_modules
263
- globalThis . _VSCODE_NODE_MODULES = new Proxy ( Object . create ( null ) , { get : ( _target , mod ) => require ( String ( mod ) ) } ) ;
264
-
265
- // VSCODE_GLOBALS: package/product.json
266
- globalThis . _VSCODE_PRODUCT_JSON = require ( '../product.json' ) ;
267
- globalThis . _VSCODE_PACKAGE_JSON = require ( '../package.json' ) ;
268
-
269
262
delete process . env [ 'ELECTRON_RUN_AS_NODE' ] ; // Keep bootstrap-amd.js from redefining 'fs'.
270
263
271
264
// See https://github.com/microsoft/vscode-remote-release/issues/6543
You can’t perform that action at this time.
0 commit comments