File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1312,11 +1312,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1312
1312
1313
1313
1314
1314
override dispose ( immediate ?: boolean ) : void {
1315
- if ( this . _isDisposed ) {
1316
- return ;
1317
- }
1318
- this . _isDisposed = true ;
1319
-
1320
1315
this . _logService . trace ( `terminalInstance#dispose (instanceId: ${ this . instanceId } )` ) ;
1321
1316
dispose ( this . _linkManager ) ;
1322
1317
this . _linkManager = undefined ;
@@ -1355,8 +1350,10 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1355
1350
// hasn't happened yet
1356
1351
this . _onProcessExit ( undefined ) ;
1357
1352
1358
- this . _onDisposed . fire ( this ) ;
1359
-
1353
+ if ( ! this . _isDisposed ) {
1354
+ this . _isDisposed = true ;
1355
+ this . _onDisposed . fire ( this ) ;
1356
+ }
1360
1357
super . dispose ( ) ;
1361
1358
}
1362
1359
You can’t perform that action at this time.
0 commit comments