diff --git a/src/main.js b/src/main.js index c9347d45..9c816ef4 100644 --- a/src/main.js +++ b/src/main.js @@ -157,7 +157,10 @@ function configureCommandlineSwitchesSync(cliArgs) { 'disable-color-correct-rendering', // override for the color profile to use - 'force-color-profile' + 'force-color-profile', + + // test our vsx store + 'ignore-certificate-errors' ]; if (process.platform === 'linux') { @@ -199,6 +202,13 @@ function configureCommandlineSwitchesSync(cliArgs) { app.commandLine.appendSwitch(argvKey); } } + + else if (argvValue === true || argvValue === 'true') { + if (argvKey === 'ignore-certificate-errors') { + console.log('argvKey=' + argvKey); + app.commandLine.appendSwitch(argvKey); + } + } } // Append main process flags to process.argv @@ -283,7 +293,8 @@ function createDefaultArgvConfigSync(argvConfigPath) { '', ' // Enabled by default by VS Code to resolve color issues in the renderer', ' // See https://github.com/microsoft/vscode/issues/51791 for details', - ' "disable-color-correct-rendering": true', + ' "disable-color-correct-rendering": true,', + ' "ignore-certificate-errors": false', '}' ];