Skip to content

Commit

Permalink
useHostProxy > isUseHostProxyEnabled() (microsoft/vscode-copilot-rele…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Jan 16, 2025
1 parent 8961ff9 commit 2b0261c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@vscode/deviceid": "^0.1.1",
"@vscode/iconv-lite-umd": "0.7.0",
"@vscode/policy-watcher": "^1.1.8",
"@vscode/proxy-agent": "^0.29.0",
"@vscode/proxy-agent": "^0.30.0",
"@vscode/ripgrep": "^1.15.9",
"@vscode/spdlog": "^0.15.0",
"@vscode/sqlite3": "5.1.8-vscode",
Expand Down
8 changes: 4 additions & 4 deletions remote/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@parcel/watcher": "2.5.0",
"@vscode/deviceid": "^0.1.1",
"@vscode/iconv-lite-umd": "0.7.0",
"@vscode/proxy-agent": "^0.29.0",
"@vscode/proxy-agent": "^0.30.0",
"@vscode/ripgrep": "^1.15.9",
"@vscode/spdlog": "^0.15.0",
"@vscode/tree-sitter-wasm": "^0.0.5",
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/api/node/proxyResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function connectProxyResolver(
const useHostProxyDefault = initData.environment.useHostProxy ?? !isRemote;
const fallbackToLocalKerberos = useHostProxyDefault;
const loadLocalCertificates = useHostProxyDefault;
const isUseHostProxyEnabled = () => configProvider.getConfiguration('http').get<boolean>('useLocalProxyConfiguration', useHostProxyDefault);
const isUseHostProxyEnabled = () => !isRemote || configProvider.getConfiguration('http').get<boolean>('useLocalProxyConfiguration', useHostProxyDefault);
const params: ProxyAgentParams = {
resolveProxy: url => extHostWorkspace.resolveProxy(url),
lookupProxyAuthorization: lookupProxyAuthorization.bind(undefined, extHostWorkspace, extHostLogService, mainThreadTelemetry, configProvider, {}, {}, initData.remote.isRemote, fallbackToLocalKerberos),
Expand Down Expand Up @@ -71,7 +71,7 @@ export function connectProxyResolver(
}
},
proxyResolveTelemetry: () => { },
useHostProxy: isUseHostProxyEnabled(), // TODO: can change at runtime now
isUseHostProxyEnabled,
loadAdditionalCertificates: async () => {
const promises: Promise<string[]>[] = [];
if (initData.remote.isRemote) {
Expand Down

0 comments on commit 2b0261c

Please sign in to comment.