Feature: Respect VS Code's built-in proxy settings (http.proxy, http.noProxy) #21666
Replies: 2 comments 1 reply
-
|
@EhabY can you provide some insights here? Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Currently, the VS Code extension respects the
I suppose we can add support to We can also check if there are any other gaps in the VS Code proxy settings. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The Coder VS Code extension should respect VS Code's built-in proxy settings, including
http.proxy, http.proxyStrictSSL, and http.noProxy.Current Behavior
When VS Code's proxy settings are configured in settings.json:
✅ VS Code itself routes traffic through the proxy and bypasses for domains in http.noProxy
✅ Most extensions respect these settings
❌ Coder extension does not appear to use these proxy settings
Result: Extension fails to connect to internal Coder deployments that should bypass the proxy according to
http.noProxyconfiguration.Expected Behavior
The extension should automatically use VS Code's configured proxy settings when making HTTP/HTTPS requests:
http.proxyhttp.noProxyhttp.proxyStrictSSLfor certificate validationThis matches the behavior of VS Code core and other extensions.
Impact
Blocks enterprise deployments in corporate networks:
http.proxyandhttp.noProxyare the standard way to configure thisReal-world scenario:
http.proxyconfigured (required for external traffic)http.noProxy: ["coder.internal.company.com"]to bypass proxy for internal CoderWhy This Matters
Respecting VS Code's native proxy settings is standard behavior for extensions. VS Code already provides the infrastructure for proxy configuration with bypass rules - the extension just needs to use it.
Implementation Notes
VS Code exposes proxy configuration through its settings API:
Most HTTP client libraries (axios, node-fetch, etc.) can be configured to use these settings when making requests.
Beta Was this translation helpful? Give feedback.
All reactions