custom environment variables in settings.json map #13406
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Description of the new feature/enhancement
Adding a new settings.json mapping for extra environment variables injected by conpty initialization,
allowing for user-set environment variables to be handled directly by WindowsTerminal and passed to children as WT_SESSION and WT_PROFILE_ID are.
As it stands, using SETX to load custom environment variables into every terminal child invites cloberring of vars like WSLENV, since WindowsTerminal manually appends and prepends WT_SESSION and WT_PROIFLE_ID to WSLENV.
...
This stems from #7130 and modules wishing to find the equivalent of "$env:WT_SETTINGS". I could not find a similar request, but I apologize in advance if this is a superfluous suggestion.
Proposed technical implementation details (optional)
Using internal "_environment" in ConptyConnection.cpp as external settings.json map "environment", if possible, since "_environment" seems to already handle injecting arbitrary* environment variables.
The text was updated successfully, but these errors were encountered: