mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
don't restore non-file empty windows
This commit is contained in:
@@ -948,7 +948,7 @@ export class WindowsManager implements IWindowsMainService {
|
||||
if (pathToOpen && pathToOpen.folderUri) {
|
||||
windowsToOpen.push(pathToOpen);
|
||||
}
|
||||
} else if (restoreWindows !== 'folders' && openedWindow.backupPath) { // Windows that were Empty
|
||||
} else if (restoreWindows !== 'folders' && openedWindow.backupPath && !openedWindow.remoteAuthority) { // Local windows that were empty. Empty windows with backups will always be restored in open()
|
||||
windowsToOpen.push({ backupPath: openedWindow.backupPath, remoteAuthority: openedWindow.remoteAuthority });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user