Skip to content

HTTP proxy environment variables support #124

@fancl20

Description

@fancl20

vscode use http_proxy and https_proxy environment variables if the proxy setting not set. It seems not to work when using code-server.

Activity

kylecarbs

kylecarbs commented on Mar 8, 2019

@kylecarbs
Member

We'd need to add proper VS Code networking setup to code-server. Not sure about this.

Ref: https://code.visualstudio.com/docs/setup/network

avindra

avindra commented on Mar 9, 2019

@avindra

I'm also looking for proxy support (in order to install extensions).

As a workaround, I tried importing the vsix file directly, but this error shows up when I do that:

image

coadler

coadler commented on Mar 9, 2019

@coadler
Contributor
RichardMcSorley

RichardMcSorley commented on Apr 2, 2019

@RichardMcSorley
Contributor

Also looking forward to this support. Not able to run it on some networks due to this, makes code-server cumbersome to use.

fcomte

fcomte commented on Apr 5, 2019

@fcomte

Does anybody success to install extension behind a proxy ?
Iam using : version 1.604-vsc1.32.0

jrderuiter

jrderuiter commented on Apr 15, 2019

@jrderuiter

Not yet, running into the same issue unfortunately.

kylecarbs

kylecarbs commented on Apr 24, 2019

@kylecarbs
Member

I'd be happy to implement this, but would concretely like to understand the importance. Does this just proxy all requests VS Code would normally make?

t-d-d

t-d-d commented on Apr 26, 2019

@t-d-d

The only issue I have seen so far is that the installation of extensions doesn't respect the proxy setting, from the UI or via the --install-extension command line flag. Would graetly appreciate a fix for that.

jrderuiter

jrderuiter commented on Apr 26, 2019

@jrderuiter

For me the main issue was also with installing extensions (I get a timeout because code-server doesn't go through the proxy). I also have some issues with icons (file icons, for example) in the browser, but that's probably not related.

fancl20

fancl20 commented on Apr 26, 2019

@fancl20
Author

The problem is that there exist many extensions to download binaries they need not during installing but during the first start up (like official C/C++ extension or Golang extensions). I'm not sure whether they regard the system proxy preference or using vscode setting.

t-d-d

t-d-d commented on May 2, 2019

@t-d-d

@fancl20 are you aware of the vscode setting for this:

  // Use the proxy support for extensions.
  //  - off: Disable proxy support for extensions.
  //  - on: Enable proxy support for extensions.
  //  - override: Enable proxy support for extensions, override request options.
  "http.proxySupport": "override",

Maybe this #545 will help resolve this. Waiting on a new release to test it.

@jrderuiter regarding the icons, I just raised #627 . Agree, I don't think it is related.

t-d-d

t-d-d commented on May 2, 2019

@t-d-d

@fancl20 I can confirm that the rest-client extension works fine behind a proxy with http_proxy set and the above vscode setting.

41 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureNew user visible feature

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @avindra@jrderuiter@fancl20@benjaminbauer@t-d-d

      Issue actions

        HTTP proxy environment variables support · Issue #124 · coder/code-server