Skip to content

Commit

Permalink
remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Mar 11, 2021
1 parent 63460db commit d574f8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vs/workbench/contrib/terminal/browser/terminalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,10 @@ export class TerminalService implements ITerminalService {

const enableTerminalReconnection = this.configHelper.config.enablePersistentSessions;

this._connectionState = TerminalConnectionState.Connecting;
if (!!this._environmentService.remoteAuthority && enableTerminalReconnection) {
this._connectionState = TerminalConnectionState.Connecting;
this._remoteTerminalsInitPromise = this._reconnectToRemoteTerminals();
} else if (enableTerminalReconnection) {
this._connectionState = TerminalConnectionState.Connecting;
this._localTerminalsInitPromise = this._reconnectToLocalTerminals();
} else {
this._connectionState = TerminalConnectionState.Connected;
Expand Down

0 comments on commit d574f8e

Please sign in to comment.