Skip to content

Commit

Permalink
Merge pull request #154799 from microsoft/tyriar/1_69_154421
Browse files Browse the repository at this point in the history
Release 1.69: Reduce shell integration relaunch cases
  • Loading branch information
Tyriar authored Jul 12, 2022
2 parents d451550 + 9d4d0c2 commit b7bf869
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {

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

if (this._usedShellIntegrationInjection && (this._processManager.processState === ProcessState.KilledDuringLaunch || this._processManager.processState === ProcessState.KilledByProcess)) {
if (this._usedShellIntegrationInjection && this._processManager.processState === ProcessState.KilledDuringLaunch && parsedExitResult?.code !== 0) {
this._relaunchWithShellIntegrationDisabled(parsedExitResult?.message);
this._onExit.fire(exitCodeOrError);
return;
Expand Down

0 comments on commit b7bf869

Please sign in to comment.