Skip to content

Commit 88b4d3f

Browse files
authored
Merge pull request #118448 from microsoft/tyriar/1_54_118321
Don't force create a terminal on no reconnect
2 parents c48a57b + d68ab8f commit 88b4d3f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,10 @@ export class TerminalService implements ITerminalService {
182182
const layoutInfo = await this._terminalInstanceService.getTerminalLayoutInfo();
183183
if (layoutInfo && layoutInfo.tabs.length > 0) {
184184
this._recreateTerminalTabs(layoutInfo);
185-
// now that terminals have been restored,
186-
// attach listeners to update local state when terminals are changed
187-
this.attachProcessLayoutListeners(false);
188-
} else {
189-
this.createTerminal();
190-
this.attachProcessLayoutListeners(false);
191185
}
186+
// now that terminals have been restored,
187+
// attach listeners to update local state when terminals are changed
188+
this.attachProcessLayoutListeners(false);
192189
this._connectionState = TerminalConnectionState.Connected;
193190
this._onDidChangeConnectionState.fire();
194191
}

0 commit comments

Comments
 (0)