55
66import { createDecorator } from 'vs/platform/instantiation/common/instantiation' ;
77import { IWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces' ;
8+ import URI from 'vs/base/common/uri' ;
89
910export interface IBackupWorkspacesFormat {
1011 rootWorkspaces : IWorkspaceIdentifier [ ] ;
11- folderWorkspaces : string [ ] ;
12+ folderURIWorkspaces : string [ ] ;
1213 emptyWorkspaces : string [ ] ;
14+
15+ // deprecated
16+ folderWorkspaces ?: string [ ] ; // use folderURIWorkspaces instead
1317}
1418
1519export const IBackupMainService = createDecorator < IBackupMainService > ( 'backupMainService' ) ;
@@ -20,10 +24,14 @@ export interface IBackupMainService {
2024 isHotExitEnabled ( ) : boolean ;
2125
2226 getWorkspaceBackups ( ) : IWorkspaceIdentifier [ ] ;
23- getFolderBackupPaths ( ) : string [ ] ;
27+ getFolderBackupPaths ( ) : URI [ ] ;
2428 getEmptyWindowBackupPaths ( ) : string [ ] ;
2529
2630 registerWorkspaceBackupSync ( workspace : IWorkspaceIdentifier , migrateFrom ?: string ) : string ;
27- registerFolderBackupSync ( folderPath : string ) : string ;
31+ registerFolderBackupSync ( folderPath : URI ) : string ;
2832 registerEmptyWindowBackupSync ( backupFolder ?: string ) : string ;
33+
34+ unregisterWorkspaceBackupSync ( workspace : IWorkspaceIdentifier ) : void ;
35+ unregisterFolderBackupSync ( folderPath : URI ) : void ;
36+ unregisterEmptyWindowBackupSync ( backupFolder : string ) : void ;
2937}
0 commit comments