-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for Default Environment Variable Value in ${localEnv:...}
and ${containerEnv:...}
#50
Comments
@vscode-triage-bot commented at This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
@MShekow commented at We also would need this feature. What exactly is meant by "out of scope"? |
@chrmarti commented at "out of scope" because we never got to consider doing this. Reopening to reconsider. |
@MShekow commented at Thank you for reopening this ticket. Since the issue is quite old, having just consulted the docs, I suppose it makes sense to have this default-value mechanism implemented for |
@firdacz commented at Not just
...would probably need to be quoted (if containing |
@chrmarti Given the help wanted message - should this be in the CLI repo? Or separated into a spec update and then the reference implementation? |
@celestialorb microsoft/vscode-remote-release#1108 at
08/06/2019 11:25:45
:I wasn't able to find anything suggesting this was possible, nor did it seem to work when I tried it myself.
I'd like to see the ability to specify a default value for local environment variable values in the
runArgs
property of thedevcontainer.json
file. I'm trying to use the value of a local env var to determine the filesystem source of a bind mount into the remote environment container, or default to a named volume if the variable does not exist.I propose the ability to use the standard way of defining a default value for a shell/environment variable, with the
<variable-name>:-<default-value>
. I have tried this and it does not seem to work. An example is shown below for therunArgs
property of thedevcontainer.json
file.The text was updated successfully, but these errors were encountered: