@@ -54,8 +54,8 @@ export class ElectronPtyHostStarter implements IPtyHostStarter {
54
54
this . utilityProcess . start ( {
55
55
type : 'ptyHost' ,
56
56
entryPoint : 'vs/platform/terminal/node/ptyHostMain' ,
57
- payload : this . _createPtyHostConfiguration ( lastPtyId ) ,
58
- execArgv
57
+ execArgv ,
58
+ env : this . _createPtyHostConfiguration ( lastPtyId )
59
59
} ) ;
60
60
61
61
const port = this . utilityProcess . connect ( ) ;
@@ -78,13 +78,13 @@ export class ElectronPtyHostStarter implements IPtyHostStarter {
78
78
79
79
private _createPtyHostConfiguration ( lastPtyId : number ) {
80
80
return {
81
- VSCODE_LAST_PTY_ID : lastPtyId ,
81
+ VSCODE_LAST_PTY_ID : String ( lastPtyId ) ,
82
82
VSCODE_AMD_ENTRYPOINT : 'vs/platform/terminal/node/ptyHostMain' ,
83
83
VSCODE_PIPE_LOGGING : 'true' ,
84
84
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 )
88
88
} ;
89
89
}
90
90
0 commit comments