Skip to content

Commit 9d4d0c2

Browse files
committed
Don't relaunch shell integration terminals when killed by process
The failures we care about should be covered by KilledDuringLaunch Fixes microsoft#154421
1 parent 51acdef commit 9d4d0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
16571657

16581658
const parsedExitResult = parseExitResult(exitCodeOrError, this.shellLaunchConfig, this._processManager.processState, this._initialCwd);
16591659

1660-
if (this._usedShellIntegrationInjection && (this._processManager.processState === ProcessState.KilledDuringLaunch || this._processManager.processState === ProcessState.KilledByProcess) && parsedExitResult?.code !== 0) {
1660+
if (this._usedShellIntegrationInjection && this._processManager.processState === ProcessState.KilledDuringLaunch && parsedExitResult?.code !== 0) {
16611661
this._relaunchWithShellIntegrationDisabled(parsedExitResult?.message);
16621662
this._onExit.fire(exitCodeOrError);
16631663
return;

0 commit comments

Comments
 (0)