Skip to content

Commit 2b54ca8

Browse files
authored
use vscode-userdata scheme for user data (microsoft#175212)
1 parent 9c48a9a commit 2b54ca8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/code/node/sharedProcess/sharedProcessMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class SharedProcessMain extends Disposable {
266266
fileService.registerProvider(Schemas.vscodeUserData, userDataFileSystemProvider);
267267

268268
// User Data Profiles
269-
const userDataProfilesService = this._register(new UserDataProfilesService(this.configuration.profiles.all, URI.revive(this.configuration.profiles.home), mainProcessService.getChannel('userDataProfiles')));
269+
const userDataProfilesService = this._register(new UserDataProfilesService(this.configuration.profiles.all, URI.revive(this.configuration.profiles.home).with({ scheme: environmentService.userRoamingDataHome.scheme }), mainProcessService.getChannel('userDataProfiles')));
270270
services.set(IUserDataProfilesService, userDataProfilesService);
271271

272272
// Configuration

src/vs/workbench/electron-sandbox/desktop.main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class DesktopMain extends Disposable {
233233
serviceCollection.set(IUriIdentityService, uriIdentityService);
234234

235235
// User Data Profiles
236-
const userDataProfilesService = new UserDataProfilesService(this.configuration.profiles.all, URI.revive(this.configuration.profiles.home), mainProcessService.getChannel('userDataProfiles'));
236+
const userDataProfilesService = new UserDataProfilesService(this.configuration.profiles.all, URI.revive(this.configuration.profiles.home).with({ scheme: environmentService.userRoamingDataHome.scheme }), mainProcessService.getChannel('userDataProfiles'));
237237
serviceCollection.set(IUserDataProfilesService, userDataProfilesService);
238238
const userDataProfileService = new UserDataProfileService(reviveProfile(this.configuration.profiles.profile, userDataProfilesService.profilesHome.scheme), userDataProfilesService);
239239
serviceCollection.set(IUserDataProfileService, userDataProfileService);

0 commit comments

Comments
 (0)