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
Running script with F5 changes directory when script is on a drive that's different from launch.json cwd value and powershell.debugging.createTemporaryIntegratedConsole is enabled
#5132
Open
6 tasks done
thegraffix opened this issue
Jan 25, 2025
· 1 comment
Prerequisites
Summary
Scenario:
powershell.debugging.createTemporaryIntegratedConsole
is enabledsettings.json
orlaunch.json
containscwd
value of"C:\\"
D:\Scripts\MyScript.ps1
Integrated Terminal current directories:
Before running
D:\Scripts\MyScript.ps1
with F5:$PWD
?C:
C:\Users\TestUser\Desktop\
D:
D:\
After running
D:\Scripts\MyScript.ps1
with F5:$PWD
?C:
C:\
D:
D:\Scripts\
<--- bug (should remainD:\
)PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
powershell.debugging.createTemporaryIntegratedConsole
cwd
value insettings.json
orlaunch.json
$PSScriptRoot
when it shouldn't be changed at allExpected behavior:
Actual behavior:
$PSScriptRoot
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: