src/vs/platform/userDataProfile/electron-main/userDataProfile.ts/UserDataProfilesMainService/setProfileForWorkspace
class UserDataProfilesMainService:	override async setProfileForWorkspace(profile: IUserDataProfile, workspaceIdentifier: WorkspaceIdentifier): Promise<IUserDataProfile> {
		if (!this.enabled) {
			throw new Error(`Settings Profiles are disabled. Enable them via the '${PROFILES_ENABLEMENT_CONFIG}' setting.`);
		}

		profile = reviveProfile(profile, this.profilesHome.scheme);
		this.updateWorkspaceAssociation(workspaceIdentifier, profile);

		return this.profiles.find(p => this.uriIdentityService.extUri.isEqual(p.location, profile.location))!;
	}