mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-21 18:47:00 -05:00
Merge from vscode a9b7cb4ee1caac9a9ac1467848017b4cd9765d9e (#9589)
This commit is contained in:
@@ -457,8 +457,9 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
|
||||
let foldersToRestore: URI[] = [];
|
||||
let workspacesToRestore: IWorkspacePathToOpen[] = [];
|
||||
if (openConfig.initialStartup && !openConfig.cli.extensionDevelopmentPath && !openConfig.cli['disable-restore-windows']) {
|
||||
let foldersToRestore = this.backupMainService.getFolderBackupPaths();
|
||||
foldersToOpen.push(...foldersToRestore.map(f => ({ folderUri: f, remoteAuhority: getRemoteAuthority(f) })));
|
||||
// don't restore backuped folders, for #92318.
|
||||
// let foldersToRestore = this.backupMainService.getFolderBackupPaths();
|
||||
// foldersToOpen.push(...foldersToRestore.map(f => ({ folderUri: f, remoteAuhority: getRemoteAuthority(f) })));
|
||||
|
||||
// collect from workspaces with hot-exit backups and from previous window session
|
||||
workspacesToRestore = [...this.backupMainService.getWorkspaceBackups(), ...this.workspacesMainService.getUntitledWorkspacesSync()];
|
||||
|
||||
Reference in New Issue
Block a user