Skip to content

PowerShell Integrated Terminal Crashes when Changing Folders #242850

@Wolveraptor

Description

@Wolveraptor

Type: Bug

Steps to reproduce:

  • Ensure you have have opened two separate Git repositories both with the integrated PowerShell terminal loaded first! This is required so that PowerShell attempts to automatically open each time you open a new Git folder.
  • Open Visual Studio Code.
  • Open a folder with a Git repository.
  • PowerShell integrated terminal will stay open.
  • Open another folder with Git repository.
  • PowerShell integrated terminal crashes with the error: "The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: -1073741510."

Have tried:

  • Disabling all Visual Studio Code extensions.
  • Removing all Visual Studio Code "@Modified" settings.
  • Deleting the "C:\Users<UserName>\AppData\Roaming\Code' folder.

Notes:

  • Downgrading to Visual Studio Code 1.97.2 on Windows 11 24H2 seems to work.
  • Visual Studio Code 1.98.0 does not have the same issue when on Windows 11 23H2.

Issue occurs when:

  • Using Windows 11 24H2 and Visual Studio Code 1.98.0

Isse does not occur when:

  • Using Windows 11 24H2 and Visual Studio Code 1.97.2
  • Using Windows 11 23H2 and Visual Studio Code 1.98.0

VS Code version: Code 1.98.0 (6609ac3, 2025-03-04T21:06:18.612Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i9-13900K (32 x 2995)
GPU Status 2d_canvas: enabled
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
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.72GB (52.90GB free)
Process Argv --crash-reporter-id 5dc200e8-363d-4d5f-8dc6-63a69f76ed42
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
debugpy ms- 2025.4.0
python ms- 2025.2.0
vscode-pylance ms- 2025.3.1
powershell ms- 2025.0.0

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseconfirmedIssue has been confirmed by VS Code Team memberregressionSomething that used to work is now brokenverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions