-
Notifications
You must be signed in to change notification settings - Fork 21
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
Merge Process Environment on Exec Calls #192
Merge Process Environment on Exec Calls #192
Conversation
Thanks for the contribution! Before we can merge this, we need @jpm63 to sign the Sonatype Contributor License Agreement. |
|
||
export function exec(command: string, options: cp.ExecOptions): Promise<{ stdout: string; stderr: string }> { | ||
options.env = { ...process.env, ...options.env } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neato!
Also isn't process just available (no import needed?): https://github.com/sonatype-nexus-community/vscode-iq-plugin/pull/187/files#diff-c95f6239f1374b3dc1be4cafeaf71efac187b103786c2466678b43b8c0e5d9bcR52-R54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call - I've removed the import
Thanks a ton for the PR! We really appreciate it!!! This should be released momentarily :) |
## [1.0.23](v1.0.22...v1.0.23) (2021-03-24) ### Bug Fixes * Merge Process Environment on Exec Calls ([#192](#192)) ([7eaa72f](7eaa72f))
🎉 This PR is included in version 1.0.23 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Configure any
exec
calls to use the VS Code process's environment variables in addition to any plugin-provided overrides.This pull request makes the following changes:
Adjusts the
exec
function to incorporate VS Code process's environment variables.(If there are changes to user behavior in general, please make sure to
update the docs, as well)
It relates to the following issue #s:
cc @bhamail / @DarthHater