File tree 2 files changed +5
-5
lines changed
workbench/contrib/terminal/node
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -575,17 +575,17 @@ class Terminal {
575
575
// type: 'orphan?';
576
576
}
577
577
578
- public dispose ( ) {
578
+ public async dispose ( ) {
579
579
logger . debug ( 'Terminal disposing' , field ( 'id' , this . id ) ) ;
580
580
this . _onEvent . dispose ( ) ;
581
581
this . bufferer . dispose ( ) ;
582
+ await this . process . shutdown ( true ) ;
582
583
this . process . dispose ( ) ;
583
- this . process . shutdown ( true ) ;
584
584
this . _onDispose . fire ( ) ;
585
585
this . _onDispose . dispose ( ) ;
586
586
}
587
587
588
- public shutdown ( immediate : boolean ) : void {
588
+ public shutdown ( immediate : boolean ) : Promise < void > {
589
589
return this . process . shutdown ( immediate ) ;
590
590
}
591
591
Original file line number Diff line number Diff line change @@ -245,9 +245,9 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
245
245
this . _onProcessTitleChanged . fire ( this . _currentTitle ) ;
246
246
}
247
247
248
- public shutdown ( immediate : boolean ) : void {
248
+ public async shutdown ( immediate : boolean ) : Promise < void > {
249
249
if ( immediate ) {
250
- this . _kill ( ) ;
250
+ await this . _kill ( ) ;
251
251
} else {
252
252
this . _queueProcessExit ( ) ;
253
253
}
You can’t perform that action at this time.
0 commit comments