microsoft / vscode-tools-for-ai

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.
Other
325 stars 95 forks source link

[Problem] Jupyter terminal is stuck if environment proxy variables are set without username and password #1289

Open shsuman opened 3 years ago

shsuman commented 3 years ago

After diving through VSCode’s documentation for proxy support and other related Github issues, it came to me as a surprise that proxy authentication is still not supported for extensions. This is mainly because of the limitations in electron itself. However, the authentication is available for native VSCode features.

image.png

Related: https://github.com/microsoft/vscode/issues/12588 https://github.com/nodejs/node/issues/15620 https://github.com/electron/electron/issues/20215

So, in cases like these, we have two options. Set the username and password in the environment variables or alternatively set them in the VSCode setting “http.proxyAuthorization” which is stored in the VSCode settings file. Both the solutions are not optimal but unfortunately this is the only way today ☹

tbombach commented 3 years ago

Follow up: Sync with Luis about this to figure out where to put this in documentation.