Skip to content

Commit 677be08

Browse files
committed
1 parent 670f92f commit 677be08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export class ElectronPtyHostStarter implements IPtyHostStarter {
5454
this.utilityProcess.start({
5555
type: 'ptyHost',
5656
entryPoint: 'vs/platform/terminal/node/ptyHostMain',
57-
payload: this._createPtyHostConfiguration(lastPtyId),
58-
execArgv
57+
execArgv,
58+
env: this._createPtyHostConfiguration(lastPtyId)
5959
});
6060

6161
const port = this.utilityProcess.connect();
@@ -78,13 +78,13 @@ export class ElectronPtyHostStarter implements IPtyHostStarter {
7878

7979
private _createPtyHostConfiguration(lastPtyId: number) {
8080
return {
81-
VSCODE_LAST_PTY_ID: lastPtyId,
81+
VSCODE_LAST_PTY_ID: String(lastPtyId),
8282
VSCODE_AMD_ENTRYPOINT: 'vs/platform/terminal/node/ptyHostMain',
8383
VSCODE_PIPE_LOGGING: 'true',
8484
VSCODE_VERBOSE_LOGGING: 'true', // transmit console logs from server to client,
85-
VSCODE_RECONNECT_GRACE_TIME: this._reconnectConstants.graceTime,
86-
VSCODE_RECONNECT_SHORT_GRACE_TIME: this._reconnectConstants.shortGraceTime,
87-
VSCODE_RECONNECT_SCROLLBACK: this._reconnectConstants.scrollback
85+
VSCODE_RECONNECT_GRACE_TIME: String(this._reconnectConstants.graceTime),
86+
VSCODE_RECONNECT_SHORT_GRACE_TIME: String(this._reconnectConstants.shortGraceTime),
87+
VSCODE_RECONNECT_SCROLLBACK: String(this._reconnectConstants.scrollback)
8888
};
8989
}
9090

0 commit comments

Comments
 (0)