feat: add disable-lcd-text flag (#211716)

This commit is contained in:
Raymond Zhao
2024-05-06 10:00:49 -07:00
committed by GitHub
parent e3d04f279f
commit 8a3f7e95d2
4 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -202,7 +202,10 @@ function configureCommandlineSwitchesSync(cliArgs) {
'disable-hardware-acceleration',
// override for the color profile to use
'force-color-profile'
'force-color-profile',
// disable LCD font rendering, a Chromium flag
'disable-lcd-text'
];
if (process.platform === 'linux') {
@@ -129,6 +129,7 @@ export interface NativeParsedArgs {
'inspect'?: string;
'inspect-brk'?: string;
'js-flags'?: string;
'disable-lcd-text'?: boolean;
'disable-gpu'?: boolean;
'disable-gpu-sandbox'?: boolean;
'nolazy'?: boolean;
+1
View File
@@ -120,6 +120,7 @@ export const OPTIONS: OptionDescriptions<Required<NativeParsedArgs>> = {
'inspect-extensions': { type: 'string', allowEmptyValue: true, deprecates: ['debugPluginHost'], args: 'port', cat: 't', description: localize('inspect-extensions', "Allow debugging and profiling of extensions. Check the developer tools for the connection URI.") },
'inspect-brk-extensions': { type: 'string', allowEmptyValue: true, deprecates: ['debugBrkPluginHost'], args: 'port', cat: 't', description: localize('inspect-brk-extensions', "Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI.") },
'disable-lcd-text': { type: 'boolean', cat: 't', description: localize('disableLCDText', "Disable LCD font rendering.") },
'disable-gpu': { type: 'boolean', cat: 't', description: localize('disableGPU', "Disable GPU hardware acceleration.") },
'disable-chromium-sandbox': { type: 'boolean', cat: 't', description: localize('disableChromiumSandbox', "Use this option only when there is requirement to launch the application as sudo user on Linux or when running as an elevated user in an applocker environment on Windows.") },
'sandbox': { type: 'boolean' },
@@ -356,6 +356,10 @@ import { MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL } from 'vs/platform/window/electron-sand
type: 'string',
description: localize('argv.locale', 'The display Language to use. Picking a different language requires the associated language pack to be installed.')
},
'disable-lcd-text': {
type: 'boolean',
description: localize('argv.disableLcdText', 'Disables LCD font antialiasing.')
},
'disable-hardware-acceleration': {
type: 'boolean',
description: localize('argv.disableHardwareAcceleration', 'Disables hardware acceleration. ONLY change this option if you encounter graphic issues.')