Skip to content
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

Merged
merged 3 commits into from
Mar 24, 2021
Merged

Merge Process Environment on Exec Calls #192

merged 3 commits into from
Mar 24, 2021

Conversation

jpm63
Copy link
Contributor

@jpm63 jpm63 commented Mar 16, 2021

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:

  • Fixes 191

cc @bhamail / @DarthHater

@sonatypecla
Copy link

sonatypecla bot commented Mar 16, 2021

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 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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

@jpm63 jpm63 changed the title Merge Process Environment on Exec Calls (#1) Merge Process Environment on Exec Calls Mar 18, 2021
@DarthHater DarthHater merged commit 7eaa72f into sonatype-nexus-community:main Mar 24, 2021
@DarthHater
Copy link
Member

Thanks a ton for the PR! We really appreciate it!!! This should be released momentarily :)

brent-spiner pushed a commit that referenced this pull request Mar 24, 2021
## [1.0.23](v1.0.22...v1.0.23) (2021-03-24)

### Bug Fixes

* Merge Process Environment on Exec Calls ([#192](#192)) ([7eaa72f](7eaa72f))
@brent-spiner
Copy link

🎉 This PR is included in version 1.0.23 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants