Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theia Electron Application - Proxy settings #7797

Closed
davide-sergi opened this issue May 12, 2020 · 2 comments · Fixed by #11043
Closed

Theia Electron Application - Proxy settings #7797

davide-sergi opened this issue May 12, 2020 · 2 comments · Fixed by #11043
Assignees
Labels
enhancement issues that are enhancements to current functionality - nice to haves help wanted issues meant to be picked up, require help preferences issues related to preferences vscode issues related to VSCode compatibility

Comments

@davide-sergi
Copy link

davide-sergi commented May 12, 2020

I noticed that in vscode there are a number of predefined proxy settings to act on (please refer to this file ), so is it possible to have something like that for theia?

One question: how do you handle this scenario with theia currently?

Feature Description:

In my mind, Theia should be able to get proxy configurations from its settings.json file or at least directly from OS proxy configuration (as happen for Postman electron app - please refer to this link ).
After that all HTTP/S requests generated by extensions and plugins should be proxied.

@akosyakov akosyakov added enhancement issues that are enhancements to current functionality - nice to haves preferences issues related to preferences vscode issues related to VSCode compatibility help wanted issues meant to be picked up, require help labels May 13, 2020
@r10r
Copy link

r10r commented Oct 12, 2021

@davide-sergi Hi, did you manage to configure the http proxy ?

I'm trying to install an extension within theia which is running in kubernetes behind a proxy and I'm getting the following error:

ERROR Failed to resolve plugins from 'vscode:extension/golang.go' Error: connect ECONNREFUSED 198.41.30.195:443

The http proxy environment variables are properly set.

@luettmaSICKAG
Copy link

luettmaSICKAG commented Dec 17, 2021

We need Proxy-Support as well. The setting to use the system certificate is also important.

I think it would make sense to:

  • also support a NO_PROXY setting (or use the environment variable)
    → No proxy required for requests to localhost or services in the company network
  • Apply the same proxy settings to the Theia Extension and Theia plugins/VSCode extensions

Microsoft has a library to handle the proxy settings and patch the http client: https://github.com/Microsoft/vscode-proxy-agent
I couldn't get it running in a Theia extension, though. There were some NAPI issues (possibly due to an incompatible node version).

@msujew msujew self-assigned this Dec 17, 2021
@msujew msujew mentioned this issue Mar 30, 2022
1 task
@msujew msujew mentioned this issue Apr 19, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves help wanted issues meant to be picked up, require help preferences issues related to preferences vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants