mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-20 07:09:53 +01:00
@@ -1160,7 +1160,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
||||
}
|
||||
|
||||
override dispose(reason?: TerminalExitReason): void {
|
||||
if (this.shellLaunchConfig.type === 'Task' && reason === TerminalExitReason.Process && this._exitCode !== 0) {
|
||||
if (this.shellLaunchConfig.type === 'Task' && reason === TerminalExitReason.Process && this._exitCode !== 0 && !this.shellLaunchConfig.waitOnExit) {
|
||||
return;
|
||||
}
|
||||
if (this.isDisposed) {
|
||||
|
||||
Reference in New Issue
Block a user