vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Where do processEnv variables need to be defined?

Open mchelen-gov opened this issue 5 years ago • 3 comments

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
  1. In terminal before running VSCode:
export PRODSECRET=abcd
vscode
  1. In VSCode terminal:
export PRODSECRET=abcd

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

mchelen-gov avatar Aug 31 '20 15:08 mchelen-gov

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

steve-ross avatar Apr 05 '21 13:04 steve-ross

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

klagan avatar Dec 03 '21 19:12 klagan

This feature still does not work. One can not create a fully working shared workspace without this feature.

shkumar45 avatar Oct 21 '24 02:10 shkumar45