mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
don't restore non-file empty windows
This commit is contained in:
parent
6af961b7e5
commit
dbcefa1d91
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue