src/vs/platform/userDataProfile/common/userDataProfile.ts/UserDataProfilesService/getOrSetProfileForWorkspace
class UserDataProfilesService:	getOrSetProfileForWorkspace(workspaceIdentifier: WorkspaceIdentifier, profileToSet: IUserDataProfile = this.defaultProfile): IUserDataProfile {
		if (!this.enabled) {
			return this.defaultProfile;
		}

		let profile = this.getProfileForWorkspace(workspaceIdentifier);
		if (!profile) {
			profile = profileToSet;
			// Associate the profile to workspace only if there are user profiles
			// If there are no profiles, workspaces are associated to default profile by default
			if (this.profiles.length > 1) {
				this.setProfileForWorkspaceSync(workspaceIdentifier, profile);
			}
		}
		return profile;
	}