Skip to content

Commit

Permalink
fix #224418
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Jul 31, 2024
1 parent 02d4ed5 commit e2493ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
}

override dispose(reason?: TerminalExitReason): void {
if (this.shellLaunchConfig.type === 'Task' && reason === TerminalExitReason.Process && this._exitCode !== 0) {
return;
}
if (this.isDisposed) {
return;
}
Expand Down

0 comments on commit e2493ef

Please sign in to comment.