File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
814
814
}
815
815
816
816
this . _processManager . dispose ( immediate ) ;
817
+ // Process manager dispose/shutdown doesn't fire process exit, trigger with undefined if it
818
+ // hasn't happened yet
819
+ this . _onProcessExit ( undefined ) ;
817
820
818
821
if ( ! this . _isDisposed ) {
819
822
this . _isDisposed = true ;
@@ -1012,13 +1015,13 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1012
1015
* through user action.
1013
1016
*/
1014
1017
private _onProcessExit ( exitCode ?: number ) : void {
1015
- this . _logService . debug ( `Terminal process exit (id: ${ this . id } ) with code ${ exitCode } ` ) ;
1016
-
1017
1018
// Prevent dispose functions being triggered multiple times
1018
1019
if ( this . _isExiting ) {
1019
1020
return ;
1020
1021
}
1021
1022
1023
+ this . _logService . debug ( `Terminal process exit (id: ${ this . id } ) with code ${ exitCode } ` ) ;
1024
+
1022
1025
this . _isExiting = true ;
1023
1026
let exitCodeMessage : string | undefined ;
1024
1027
You can’t perform that action at this time.
0 commit comments