mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
parent
06044789bf
commit
4a82fbab16
1 changed files with 3 additions and 6 deletions
|
@ -183,13 +183,10 @@ export class TerminalService implements ITerminalService {
|
|||
const layoutInfo = await this._localTerminalService.getTerminalLayoutInfo();
|
||||
if (layoutInfo && layoutInfo.tabs.length > 0) {
|
||||
this._recreateTerminalTabs(layoutInfo);
|
||||
// now that terminals have been restored,
|
||||
// attach listeners to update local state when terminals are changed
|
||||
this.attachProcessLayoutListeners(false);
|
||||
} else {
|
||||
this.createTerminal();
|
||||
this.attachProcessLayoutListeners(false);
|
||||
}
|
||||
// now that terminals have been restored,
|
||||
// attach listeners to update local state when terminals are changed
|
||||
this.attachProcessLayoutListeners(false);
|
||||
this._connectionState = TerminalConnectionState.Connected;
|
||||
this._onDidChangeConnectionState.fire();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue