You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After PowerShell Extension v2023.8.0 was installed, Terminal sets the working directory of command prompt to the directory of the folder specified in a previous session. This is new, unexpected behavior since the "PowerShell: Enable Profile Loading" option is selected and a "CurrentUserAllHosts" Profile.ps1 exists that contains a Set-Location command that sets the working directory to a different location. Note that the "PowerShell: Cwd" option is not populated (i.e., the value is empty).
The "CurrentUserAllHosts" Profile.ps1 has the following relevant commands:
New-PSDrive -Name Home -PSProvider FileSystem -Root "$([Environment]::GetFolderPath('MyDocuments'))\WindowsPowerShell" | Out-Null
Set-Location -Path Home:\
Prior to PowerShell extension v2023.8.0, Terminal would default to the correct directory, which is the path specified in the Set-Location command. So, in my case, the command prompt would display as follows:
Prerequisites
Summary
After PowerShell Extension v2023.8.0 was installed, Terminal sets the working directory of command prompt to the directory of the folder specified in a previous session. This is new, unexpected behavior since the "PowerShell: Enable Profile Loading" option is selected and a "CurrentUserAllHosts" Profile.ps1 exists that contains a Set-Location command that sets the working directory to a different location. Note that the "PowerShell: Cwd" option is not populated (i.e., the value is empty).
The "CurrentUserAllHosts" Profile.ps1 has the following relevant commands:
New-PSDrive -Name Home -PSProvider FileSystem -Root "$([Environment]::GetFolderPath('MyDocuments'))\WindowsPowerShell" | Out-Null
Set-Location -Path Home:\
Prior to PowerShell extension v2023.8.0, Terminal would default to the correct directory, which is the path specified in the Set-Location command. So, in my case, the command prompt would display as follows:
PS Home:>
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
No response
Logs
File is attached
EditorServicesDiagnosticLevelOutput.txt
The text was updated successfully, but these errors were encountered: