fix: don't use appendArgument to add switch values (#84320)

* fix: don't use appendArgument to add switch values

* args - make sure to allow to enabe color correct rendering
This commit is contained in:
Robo authored and GitHub committed 2019-11-11 09:44:57 -08:00
1 parent d1d9128573
commit 2c79231817
1 file changed
+1 -5
+1 -5
View File
@@ -147,13 +147,9 @@ function configureCommandlineSwitchesSync(cliArgs) {
if (argvValue === true || argvValue === 'true') {
if (argvKey === 'disable-hardware-acceleration') {
app.disableHardwareAcceleration(); // needs to be called explicitly
} else if (argvKey === 'disable-color-correct-rendering') {
app.commandLine.appendSwitch('disable-color-correct-rendering'); // needs to be called exactly like this (https://github.com/microsoft/vscode/issues/84154)
} else {
app.commandLine.appendArgument(argvKey);
app.commandLine.appendSwitch(argvKey);
}
} else {
app.commandLine.appendSwitch(argvKey, argvValue);
}
});