From 7bfa47c31aede6b42213a9bcce26fb8d1ce2ba3b Mon Sep 17 00:00:00 2001 From: wangpenglong Date: Tue, 16 May 2023 16:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6argv.json=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0ignore-certificate-errors=E5=8F=82=E6=95=B0,?= =?UTF-8?q?=E4=B8=BAtrue=E6=97=B6=E5=BF=BD=E7=95=A5https=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E8=AF=81=E4=B9=A6.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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', '}' ];