Open ath opened 1 month ago
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
In the devcontainer.json file, I want to mount a local directory, specifically my SSH folder, into the container. This initially seems straightforward:
The problem is: I and every other developer needs to set up the
$SSH_HOME
env var on his machine, which pollutes the global env var space. For 99% of the time my OS is running, this env var isn’t needed. Additionally, I may have multiple VS Code instances running simultaneously, each requiring its own specific env var (with that identical name).I'm looking for a way to use a placeholder in the source field that would be a valid entry to commit to Git. This could be either executable code (running a local script that computes a return value) or a mechanism to load specific variables (key/value pairs) from a file not checked into Git, which each dev sets up manually on his machine. While executable code is a potential solution, it might be challenging to create something that runs on both Linux and Windows.
Solutions I've already considered:
Is there a recommended approach to this issue that allows for flexible, developer-specific configuration without polluting the global environment or requiring constant manual intervention? Or should we consider adding a new feature to devcontainer.json for flexible, developer-specific configurations?