This commit is contained in:
Sandeep Somavarapu 2023-05-31 14:12:48 +02:00 committed by GitHub
parent b3f2337542
commit 68e4866b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,6 +119,10 @@ export class UserDataProfileManagementService extends Disposable implements IUse
if (!isRemoteWindow) {
if (!(await this.extensionService.stopExtensionHosts(localize('switch profile', "Switching to a profile.")))) {
// If extension host did not stop, do not switch profile
if (this.userDataProfilesService.profiles.some(p => p.id === this.userDataProfileService.currentProfile.id)) {
await this.userDataProfilesService.setProfileForWorkspace(toWorkspaceIdentifier(this.workspaceContextService.getWorkspace()), this.userDataProfileService.currentProfile);
}
throw new CancellationError();
}
}