File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,13 @@ if (nlsConfig.pseudo) {
3333 } ) ;
3434}
3535
36- var entrypoint = process . env [ 'AMD_ENTRYPOINT' ] ;
37- if ( entrypoint ) {
36+ var bootstrap = exports . bootstrap = function ( entrypoint ) {
3837 loader ( [ entrypoint ] , function ( ) { } , function ( err ) { console . error ( err ) ; } ) ;
39- }
38+ } ;
39+
40+ if ( require . main === module ) {
41+ var entrypoint = process . env [ 'AMD_ENTRYPOINT' ] ;
42+ if ( entrypoint ) {
43+ bootstrap ( entrypoint ) ;
44+ }
45+ }
Original file line number Diff line number Diff line change @@ -76,6 +76,5 @@ process.env['VSCODE_NLS_CONFIG'] = JSON.stringify(nlsConfig);
7676
7777// Load our code once ready
7878app . once ( 'ready' , function ( ) {
79- process . env [ 'AMD_ENTRYPOINT' ] = 'vs/workbench/electron-main/main' ;
80- require ( './bootstrap-amd' ) ;
79+ require ( './bootstrap-amd' ) . bootstrap ( 'vs/workbench/electron-main/main' ) ;
8180} ) ;
You can’t perform that action at this time.
0 commit comments