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

Add the ability to read Environment Variables from other locations

Open nils-a opened this issue 3 years ago • 2 comments

I'm currently in a project where people are using different tooling.

They are using environments that are very similar to this environment settings, but reside in a this-tool.env.json file. It would be nice if we could easily load that file and "re-use" the settings. (Currently I'm copy-pasting their environments content into .vscode/settings.json.)

nils-a avatar Oct 27 '22 12:10 nils-a

not only the environment variable, say I want to store some long static text in a file and use that in a variable later , how do i do that. It would be easier to keep things like json content in json files (easy to format) and load it in a variable where needed

asos-gurpreetsingh avatar Feb 29 '24 11:02 asos-gurpreetsingh

I've just discovered the vscode secrets extension, but noticed the environment variables it injects via EnvironmentVariableCollection do not seem to be picked up by the REST Client extension?

I can use processEnv PATH or processEnv %workspaceVariable with all other environment variables, works great, but it doesn't pick the one managed via the vs-code secret extension

franck-chester avatar Mar 01 '24 12:03 franck-chester