Skip to content

Commit 68e4866

Browse files
authored
1 parent b3f2337 commit 68e4866

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ export class UserDataProfileManagementService extends Disposable implements IUse
119119

120120
if (!isRemoteWindow) {
121121
if (!(await this.extensionService.stopExtensionHosts(localize('switch profile', "Switching to a profile.")))) {
122+
// If extension host did not stop, do not switch profile
123+
if (this.userDataProfilesService.profiles.some(p => p.id === this.userDataProfileService.currentProfile.id)) {
124+
await this.userDataProfilesService.setProfileForWorkspace(toWorkspaceIdentifier(this.workspaceContextService.getWorkspace()), this.userDataProfileService.currentProfile);
125+
}
122126
throw new CancellationError();
123127
}
124128
}

0 commit comments

Comments
 (0)