Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.24k stars 436 forks source link

Where do processEnv variables need to be defined? #675

Open mchelen-gov opened 4 years ago

mchelen-gov commented 4 years ago

When using processEnv variables such as Authorization: {{$processEnv PRODSECRET}} where does the PRODSECRET environment variable need to be defined?

For example it seems like # 1 is the only way that works:

  1. In ~/.bashrc:
    export PRODSECRET=abcd
  2. In terminal before running VSCode:
    export PRODSECRET=abcd
    vscode
  3. In VSCode terminal:
    export PRODSECRET=abcd

Related: https://github.com/Huachao/vscode-restclient/issues/377

steve-ross commented 3 years ago

Any update on getting this fixed? would be awesome if I didn't have to redefine variables that are already set

klagan commented 2 years ago

in! i was hoping there was a way to pull the system environment variable but I cant get it to work.