8
8
import * as path from 'path' ;
9
9
import * as fs from 'original-fs' ;
10
10
import * as os from 'os' ;
11
- import * as bootstrapNode from './bootstrap-node.js' ;
12
- import * as bootstrapESM from './bootstrap-esm.js' ;
11
+ import { configurePortable } from './bootstrap-node.js' ;
12
+ import { load } from './bootstrap-esm.js' ;
13
13
import { fileURLToPath } from 'url' ;
14
14
import { app , protocol , crashReporter , Menu , contentTracing } from 'electron' ;
15
15
import minimist from 'minimist' ;
@@ -27,7 +27,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
27
27
perf . mark ( 'code/didStartMain' ) ;
28
28
29
29
// Enable portable support
30
- const portable = bootstrapNode . configurePortable ( product ) ;
30
+ const portable = configurePortable ( product ) ;
31
31
32
32
const args = parseCLIArgs ( ) ;
33
33
// Configure static command line arguments
@@ -176,7 +176,7 @@ function startup(codeCachePath: string | undefined, nlsConfig: INLSConfiguration
176
176
process . env [ 'VSCODE_CODE_CACHE_PATH' ] = codeCachePath || '' ;
177
177
178
178
perf . mark ( 'code/willLoadMainBundle' ) ;
179
- bootstrapESM . load ( 'vs/code/electron-main/main' , ( ) => {
179
+ load ( 'vs/code/electron-main/main' , ( ) => {
180
180
perf . mark ( 'code/didLoadMainBundle' ) ;
181
181
} ) ;
182
182
}
@@ -232,7 +232,7 @@ function configureCommandlineSwitchesSync(cliArgs: NativeParsedArgs) {
232
232
} else {
233
233
app . commandLine . appendSwitch ( argvKey ) ;
234
234
}
235
- } else if ( typeof argvValue === 'string' ) {
235
+ } else if ( typeof argvValue === 'string' && argvValue ) {
236
236
if ( argvKey === 'password-store' ) {
237
237
// Password store
238
238
// TODO@TylerLeonhardt : Remove this migration in 3 months
0 commit comments