Skip to content

Commit feec65b

Browse files
committed
Also pass process.env
1 parent fcfef87 commit feec65b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/platform/terminal/electron-main/electronPtyHostStarter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { IpcMainEvent } from 'electron';
1616
import { validatedIpcMain } from 'vs/base/parts/ipc/electron-main/ipcMain';
1717
import { DisposableStore, toDisposable } from 'vs/base/common/lifecycle';
1818
import { Emitter } from 'vs/base/common/event';
19+
import { deepClone } from 'vs/base/common/objects';
1920

2021
export class ElectronPtyHostStarter implements IPtyHostStarter {
2122

@@ -78,6 +79,7 @@ export class ElectronPtyHostStarter implements IPtyHostStarter {
7879

7980
private _createPtyHostConfiguration(lastPtyId: number) {
8081
return {
82+
...deepClone(process.env),
8183
VSCODE_LAST_PTY_ID: String(lastPtyId),
8284
VSCODE_AMD_ENTRYPOINT: 'vs/platform/terminal/node/ptyHostMain',
8385
VSCODE_PIPE_LOGGING: 'true',

0 commit comments

Comments
 (0)