File tree 1 file changed +3
-6
lines changed
src/vs/workbench/contrib/terminal/browser
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,10 @@ export class TerminalService implements ITerminalService {
182
182
const layoutInfo = await this . _terminalInstanceService . getTerminalLayoutInfo ( ) ;
183
183
if ( layoutInfo && layoutInfo . tabs . length > 0 ) {
184
184
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 ) ;
191
185
}
186
+ // now that terminals have been restored,
187
+ // attach listeners to update local state when terminals are changed
188
+ this . attachProcessLayoutListeners ( false ) ;
192
189
this . _connectionState = TerminalConnectionState . Connected ;
193
190
this . _onDidChangeConnectionState . fire ( ) ;
194
191
}
You can’t perform that action at this time.
0 commit comments