File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/vs/platform/terminal/node Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,8 @@ export class PtyHostService extends Disposable implements IPtyService {
343
343
this . _heartbeatFirstTimeout = setTimeout ( ( ) => this . _handleHeartbeatFirstTimeout ( ) , HeartbeatConstants . BeatInterval * HeartbeatConstants . FirstWaitMultiplier ) ;
344
344
if ( ! this . _isResponsive ) {
345
345
this . _isResponsive = true ;
346
+ this . _onPtyHostResponsive . fire ( ) ;
346
347
}
347
- this . _onPtyHostResponsive . fire ( ) ;
348
348
}
349
349
350
350
private _handleHeartbeatFirstTimeout ( ) {
@@ -358,14 +358,17 @@ export class PtyHostService extends Disposable implements IPtyService {
358
358
this . _heartbeatSecondTimeout = undefined ;
359
359
if ( this . _isResponsive ) {
360
360
this . _isResponsive = false ;
361
+ this . _onPtyHostUnresponsive . fire ( ) ;
361
362
}
362
- this . _onPtyHostUnresponsive . fire ( ) ;
363
363
}
364
364
365
365
private _handleUnresponsiveCreateProcess ( ) {
366
366
this . _clearHeartbeatTimeouts ( ) ;
367
367
this . _logService . error ( `No ptyHost response to createProcess after ${ HeartbeatConstants . CreateProcessTimeout / 1000 } seconds` ) ;
368
- this . _onPtyHostUnresponsive . fire ( ) ;
368
+ if ( this . _isResponsive ) {
369
+ this . _isResponsive = false ;
370
+ this . _onPtyHostUnresponsive . fire ( ) ;
371
+ }
369
372
}
370
373
371
374
private _clearHeartbeatTimeouts ( ) {
You can’t perform that action at this time.
0 commit comments