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
Observe that it displays the working directory as VS Code's executable directory within the prompt.
Additional notes:
The pwd command displays the expected working directory.
Running ls shows the contents of my project directory.
Upon running any cd command, the prompt updates and shows the correct working directory. Navigating back to the project directory shows the right location within the prompt.
Running commands that don't change the working directory causes the prompt to continue to display the wrong working directory.
This issue does not occur in PowerShell or Command Prompt.
Screen recording demonstrating bug
recording.mp4
More info
Extension version: 2024.6.0
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 2592)
I have seen the same issue, it occurs when using Git Bash with some projects but not others on the same computer. As far as I can tell all projects are using the same default settings.
For the affected projects I found that disabling the setting "Terminal > Integrated > Shell Integration" caused the correct path to be shown in the prompt, so possibly related to the startup script that this feature injects when a new terminal is started.
Type: Bug
Additional notes:
pwd
command displays the expected working directory.ls
shows the contents of my project directory.cd
command, the prompt updates and shows the correct working directory. Navigating back to the project directory shows the right location within the prompt.Screen recording demonstrating bug
recording.mp4
More info
Extension version: 2024.6.0
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: