-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Resolve standard VS Code variables in "terminal.integrated.env.*" #34337
Comments
Unless there's a more intuitive way of doing this through the There is a workaround though by using something like |
Hi @Tyriar , my description was confusing. {
"terminal.integrated.env.osx": {
"PATH": "/home"
}
} the resulting PATH in terminal in VS Code will be something like Whereas on Windows, having the "same" setting {
"terminal.integrated.env.windows": {
"PATH": "C:\bin"
}
} the resulting PATH in the integrated terminal will be just Having different behavior for Windows and Mac is strange. Also, on Mac, it seems that only the This is really hurting us because our app allows the user to open a project in our app using VS Code, and our app installs a custom Python. We use |
It's the same behavior, it's just that Windows PATH is typically set and complete when you login into Windows whereas on Mac it has more entries added to it through the
Are you sure your start up scripts are not overriding the values here?
It's fairly typical to set the system's python version using alias in one of these files. Could that be messing with it? |
Hi @Tyriar , thank you for providing pointers on where to check. I've checked the Mac I'm using, there is no Thank you for the help, agree with you that this is not a VS Code issue. |
Apparently tasks.json supports the syntax {
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};C:\bin"
}
} @dbaeumer does this sound consistent with what's supported in tasks.json? |
@Tyriar yes, |
@dbaeumer great! This is open to PRs 😃 |
This would be a useful feature to have. Just now, I was searching for a way to amend the |
+1, just tried appending or prepending the path in user settings, does not work. |
Related: #2809 |
Steps to Reproduce:
On Windows, having the same setting will not result in the current
PATH
being prepended, but instead, just setting the path to whatever is defined interminal.integrated.env.*
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: