mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
parent
b3f2337542
commit
68e4866b30
|
@ -119,6 +119,10 @@ export class UserDataProfileManagementService extends Disposable implements IUse
|
||||||
|
|
||||||
if (!isRemoteWindow) {
|
if (!isRemoteWindow) {
|
||||||
if (!(await this.extensionService.stopExtensionHosts(localize('switch profile', "Switching to a profile.")))) {
|
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();
|
throw new CancellationError();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue