Skip to content

Commit a4272b7

Browse files
authored
Merge pull request microsoft#154556 from microsoft/tyriar/154421
Reduce shell integration relaunch cases
2 parents 395f3ae + b710cb5 commit a4272b7

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
@@ -1709,7 +1709,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
17091709

17101710
const parsedExitResult = parseExitResult(exitCodeOrError, this.shellLaunchConfig, this._processManager.processState, this._initialCwd);
17111711

1712-
if (this._usedShellIntegrationInjection && (this._processManager.processState === ProcessState.KilledDuringLaunch || this._processManager.processState === ProcessState.KilledByProcess)) {
1712+
if (this._usedShellIntegrationInjection && this._processManager.processState === ProcessState.KilledDuringLaunch && parsedExitResult?.code !== 0) {
17131713
this._relaunchWithShellIntegrationDisabled(parsedExitResult?.message);
17141714
this._onExit.fire(exitCodeOrError);
17151715
return;

0 commit comments

Comments
 (0)