Close

Vague Parameter: HostProfileId

A project log for Source Code Analysis: PowerShellEditorServices

Source Code Breakdown of PowerShellEditorServices (at the time of v3.5.4)

nicholas-jacksonNicholas Jackson 10/18/2022 at 04:440 Comments

So HostProfileId is a filename prefix used to reference a custom powershell profile that exists in the same directory as the current powershell profile

This is the PowerShell equivalent of Line 393:

function GetProfilePathFromProfileObject( $profile, $user, $host ){
  $profilePath = $profile."$user$host"
  Join-Path -Path (Split-Path $profilePath) -ChildPath "$($HostProfileId)_profile.ps1"
}

We need to test this functionality

Discussions