Skip to content

Commit 2c79231

Browse files
authored
fix: don't use appendArgument to add switch values (microsoft#84320)
* fix: don't use appendArgument to add switch values * args - make sure to allow to enabe color correct rendering
1 parent d1d9128 commit 2c79231

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,9 @@ function configureCommandlineSwitchesSync(cliArgs) {
147147
if (argvValue === true || argvValue === 'true') {
148148
if (argvKey === 'disable-hardware-acceleration') {
149149
app.disableHardwareAcceleration(); // needs to be called explicitly
150-
} else if (argvKey === 'disable-color-correct-rendering') {
151-
app.commandLine.appendSwitch('disable-color-correct-rendering'); // needs to be called exactly like this (https://github.com/microsoft/vscode/issues/84154)
152150
} else {
153-
app.commandLine.appendArgument(argvKey);
151+
app.commandLine.appendSwitch(argvKey);
154152
}
155-
} else {
156-
app.commandLine.appendSwitch(argvKey, argvValue);
157153
}
158154
});
159155

0 commit comments

Comments
 (0)