44 *--------------------------------------------------------------------------------------------*/
55
66import { join } from 'vs/base/common/path' ;
7- import { joinPath , relativePath } from 'vs/base/common/resources' ;
7+ import { joinPath } from 'vs/base/common/resources' ;
88import { URI } from 'vs/base/common/uri' ;
99import { hash } from 'vs/base/common/hash' ;
1010import { coalesce } from 'vs/base/common/arrays' ;
@@ -116,7 +116,7 @@ export class BackupFileService implements IBackupFileService {
116116 ) {
117117 const backupWorkspaceResource = environmentService . configuration . backupWorkspaceResource ;
118118 if ( backupWorkspaceResource ) {
119- this . impl = new BackupFileServiceImpl ( backupWorkspaceResource , this . hashPath , environmentService , fileService ) ;
119+ this . impl = new BackupFileServiceImpl ( backupWorkspaceResource , this . hashPath , fileService ) ;
120120 } else {
121121 this . impl = new InMemoryBackupFileService ( this . hashPath ) ;
122122 }
@@ -183,7 +183,6 @@ class BackupFileServiceImpl implements IBackupFileService {
183183 constructor (
184184 backupWorkspaceResource : URI ,
185185 private readonly hashPath : ( resource : URI ) => string ,
186- @IWorkbenchEnvironmentService private readonly environmentService : IWorkbenchEnvironmentService ,
187186 @IFileService private readonly fileService : IFileService
188187 ) {
189188 this . isShuttingDown = false ;
@@ -193,7 +192,7 @@ class BackupFileServiceImpl implements IBackupFileService {
193192 }
194193
195194 initialize ( backupWorkspaceResource : URI ) : void {
196- this . backupWorkspacePath = joinPath ( this . environmentService . userRoamingDataHome , relativePath ( URI . file ( this . environmentService . userDataPath ) , backupWorkspaceResource ) ! ) ;
195+ this . backupWorkspacePath = backupWorkspaceResource ;
197196
198197 this . ready = this . init ( ) ;
199198 }
0 commit comments