Skip to content

Commit f29f23f

Browse files
committed
1 parent 781e0e3 commit f29f23f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/vs/platform/windows/electron-main/windowsMainService.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)