make backup path URI

clean up user data provider
This commit is contained in:
Sandeep Somavarapu
2019-07-05 12:55:35 +02:00
parent bf376d5223
commit 6fcabcdc24
13 changed files with 50 additions and 45 deletions

View File

@@ -161,7 +161,7 @@ class CodeMain {
environmentService.logsPath,
environmentService.globalStorageHome,
environmentService.workspaceStorageHome,
environmentService.backupHome
environmentService.backupHome.fsPath
].map((path): undefined | Promise<void> => path ? mkdirp(path) : undefined));
// Configuration service

View File

@@ -1331,7 +1331,7 @@ export class WindowsManager extends Disposable implements IWindowsMainService {
// For all other cases we first call into registerEmptyWindowBackupSync() to set it before
// loading the window.
if (options.emptyWindowBackupInfo) {
configuration.backupPath = join(this.environmentService.backupHome, options.emptyWindowBackupInfo.backupFolder);
configuration.backupPath = join(this.environmentService.backupHome.fsPath, options.emptyWindowBackupInfo.backupFolder);
}
let window: ICodeWindow | undefined;