question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set environment variable VSCODE_PROXY_URI

See original GitHub issue

With the implementation of the HTTP proxy it would be great to have an environment variable VSCODE_HTTP_REFERER available to build custon URLs for proxied webview requests.

This feature helps solving https://github.com/Ikuyadeu/vscode-R/issues/275. The existence of such an environment variable also allows to differentiate a local (VS Code) installation from a server (code-server) installation.

Other server-based IDEs set an environment variable based on the HTTP referer when the client session is initialized. See https://github.com/rstudio/rstudio/blob/aa266ded96123f654e5f3163cde39697744eee89/src/cpp/session/SessionClientInit.cpp#L170 for example.

Could you implement something similar in code-server? Or is the information on the HTTP referer already available somewhere else?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:35 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
code-ashercommented, Jan 5, 2022

Ahh I did not realize this was already implemented in vscode-R!

I used double braces to match VS Code’s own templating scheme they use with webview URIs. I will go ahead and move back to one.

2reactions
jsjoeiocommented, Sep 16, 2021

Just a heads-up - we’ve had a bunch of other priorities come up and haven’t been able to get to this yet (but we will soon)

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code does not use environment variable http_proxy - GitHub
Issue Type: Bug. Go to VS Code settings, section Application>Proxy. See Proxy setting whose clarification is "The proxy setting to use.
Read more >
Create and Modify Environment Variables on Windows
On the Advanced tab, click Environment Variables. Click New to create a new environment variable. Click Edit to modify an existing environment variable....
Read more >
Environment Variables in Windows/macOS/Linux
An environment variable set via the " set " command under CMD is a local, available to the current CMD session only. Try...
Read more >
How do I set an environment variable? - Schrödinger
To set an environment variable on Linux, enter the following command at a shell prompt, according to which shell you are using:.
Read more >
Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found