mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-05 15:36:22 +01:00
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:
1 file changed
+1
-5
+1
-5
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user