File tree Expand file tree Collapse file tree
src/vs/platform/windows/electron-main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -391,7 +391,9 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
391391 const foldersToAdd : IFolderPathToOpen [ ] = [ ] ;
392392 const foldersToOpen : IFolderPathToOpen [ ] = [ ] ;
393393 const workspacesToOpen : IWorkspacePathToOpen [ ] = [ ] ;
394+ const workspacesToRestore : IWorkspacePathToOpen [ ] = [ ] ;
394395 const emptyToRestore : IEmptyWindowBackupInfo [ ] = [ ] ; // empty windows with backupPath
396+
395397 let emptyToOpen : number = 0 ;
396398 let fileInputs : IFileInputs | undefined ; // collect all file inputs
397399 for ( const path of pathsToOpen ) {
@@ -432,11 +434,10 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
432434 //
433435 // These are windows to restore because of hot-exit or from previous session (only performed once on startup!)
434436 //
435- let workspacesToRestore : IWorkspacePathToOpen [ ] = [ ] ;
436- if ( openConfig . initialStartup && ! openConfig . cli . extensionDevelopmentPath ) {
437+ if ( openConfig . initialStartup ) {
437438
438439 // Untitled workspaces are always restored
439- workspacesToRestore = this . workspacesMainService . getUntitledWorkspacesSync ( ) ;
440+ workspacesToRestore . push ( ... this . workspacesMainService . getUntitledWorkspacesSync ( ) ) ;
440441 workspacesToOpen . push ( ...workspacesToRestore ) ;
441442
442443 // Empty windows with backups are always restored
You can’t perform that action at this time.
0 commit comments