src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.ts/UserDataProfileManagementService/enterProfile
class UserDataProfileManagementService:	private async enterProfile(profile: IUserDataProfile, preserveData: boolean, reloadMessage?: string): Promise<void> {
		if (this.environmentService.remoteAuthority) {
			const result = await this.dialogService.confirm({
				type: 'info',
				message: reloadMessage ?? localize('reload message', "Switching a profile requires reloading VS Code."),
				primaryButton: localize('reload button', "&&Reload"),
			});
			if (result.confirmed) {
				await this.hostService.reload();
			}
			return;
		}

		this.extensionService.stopExtensionHosts();
		await this.userDataProfileService.updateCurrentProfile(profile, preserveData);
		await this.extensionService.startExtensionHosts();
	}