From 8993f76c9fc6f36f7838f1e6f21feb1f4d734e55 Mon Sep 17 00:00:00 2001 From: isidorn Date: Thu, 20 Jun 2024 15:54:10 +0200 Subject: [PATCH 1/2] add proxy-bypass-list as argv argument fixes #216642 --- src/main.js | 5 ++++- src/vs/workbench/electron-sandbox/desktop.contribution.ts | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 6294a15298c..bda06104230 100644 --- a/src/main.js +++ b/src/main.js @@ -205,7 +205,10 @@ function configureCommandlineSwitchesSync(cliArgs) { 'force-color-profile', // disable LCD font rendering, a Chromium flag - 'disable-lcd-text' + 'disable-lcd-text', + + // bypass any specified proxy for the given semi-colon-separated list of hosts + 'proxy-bypass-list' ]; if (process.platform === 'linux') { diff --git a/src/vs/workbench/electron-sandbox/desktop.contribution.ts b/src/vs/workbench/electron-sandbox/desktop.contribution.ts index 0fbe0079ed1..cb950f51b9f 100644 --- a/src/vs/workbench/electron-sandbox/desktop.contribution.ts +++ b/src/vs/workbench/electron-sandbox/desktop.contribution.ts @@ -360,6 +360,10 @@ import { MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL } from 'vs/platform/window/electron-sand type: 'boolean', description: localize('argv.disableLcdText', 'Disables LCD font antialiasing.') }, + 'proxy-bypass-list': { + type: 'string', + description: localize('argv.proxyBypassList', 'Bypass any specified proxy for the given semi-colon-separated list of hosts.') + }, 'disable-hardware-acceleration': { type: 'boolean', description: localize('argv.disableHardwareAcceleration', 'Disables hardware acceleration. ONLY change this option if you encounter graphic issues.') From c8f6bdc946ffbb8588a71d81836e5941a5e546c6 Mon Sep 17 00:00:00 2001 From: isidorn Date: Fri, 21 Jun 2024 14:24:12 +0200 Subject: [PATCH 2/2] add example in the description --- src/vs/workbench/electron-sandbox/desktop.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/electron-sandbox/desktop.contribution.ts b/src/vs/workbench/electron-sandbox/desktop.contribution.ts index cb950f51b9f..6fd2279a320 100644 --- a/src/vs/workbench/electron-sandbox/desktop.contribution.ts +++ b/src/vs/workbench/electron-sandbox/desktop.contribution.ts @@ -362,7 +362,7 @@ import { MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL } from 'vs/platform/window/electron-sand }, 'proxy-bypass-list': { type: 'string', - description: localize('argv.proxyBypassList', 'Bypass any specified proxy for the given semi-colon-separated list of hosts.') + description: localize('argv.proxyBypassList', 'Bypass any specified proxy for the given semi-colon-separated list of hosts. Example value ";*.microsoft.com;*foo.com;1.2.3.4:5678", will use the proxy server for all hosts except for local addresses (localhost, 127.0.0.1 etc.), microsoft.com subdomains, hosts that contain the suffix foo.com and anything at 1.2.3.4:5678') }, 'disable-hardware-acceleration': { type: 'boolean',