Skip to content

Commit

Permalink
Fixed an issue with passing process.env to the child processes // Res…
Browse files Browse the repository at this point in the history
…olve #3287
  • Loading branch information
ivankravets committed Oct 31, 2022
1 parent de4a300 commit 881cadd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/project/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class ProjectTaskManager {
}

toVSCodeTask(projectTask) {
const envClone = Object.create(process.env);
const envClone = Object.assign({}, process.env);
if (process.env.PLATFORMIO_PATH) {
envClone.PATH = process.env.PLATFORMIO_PATH;
envClone.Path = process.env.PLATFORMIO_PATH;
Expand Down
2 changes: 1 addition & 1 deletion src/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class PIOTerminal {
}

new() {
const envClone = Object.create(process.env);
const envClone = Object.assign({}, process.env);
if (process.env.PLATFORMIO_PATH) {
envClone.PATH = process.env.PLATFORMIO_PATH;
envClone.Path = process.env.PLATFORMIO_PATH;
Expand Down

0 comments on commit 881cadd

Please sign in to comment.