I was debugging code the other day and VSC stated it had an updated. I finished what I was working on and then I updated my VSC to version 1.98.2. Since the upgrade, I cannot debug any code as it keeps telling me Powershell has crashed:
The terminal process "C:\Program Files\PowerShell\7\pwsh.exe '-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command', 'Import-Module 'c:\Users\jmilano\.vscode\extensions\ms-vscode.powershell-2025.0.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2025.0.0' -BundledModulesPath 'c:\Users\jmilano\.vscode\extensions\ms-vscode.powershell-2025.0.0\modules' -EnableConsoleRepl -StartupBanner "PowerShell Extension v2025.0.0 Copyright (c) Microsoft Corporation. https://aka.ms/vscode-powershell Type 'help' to get help. " -LogLevel 'Warning' -LogPath 'c:\Users\jmilano\AppData\Roaming\Code\logs\20250404T151628\window1\exthost\ms-vscode.powershell' -SessionDetailsPath 'c:\Users\jmilano\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSCode-10164-401247.json' -FeatureFlags @() '" terminated with exit code: 1.
Terminal window shows this each time it crashes:
2025-04-04 15:16:33.984 [info] Visual Studio Code: v1.98.2 64-bit on Windows 64-bit
2025-04-04 15:16:33.985 [info] PowerShell Extension: v2025.0.0
2025-04-04 15:16:33.985 [info] Starting 'PowerShell (x64)' at: C:\Program Files\PowerShell\7\pwsh.exe
2025-04-04 15:16:35.300 [info] PowerShell process started with PID: 7500
2025-04-04 15:16:38.489 [warning] PowerShell process terminated or Extension Terminal was closed, PID: 7500
2025-04-04 15:16:38.496 [error] Extension Terminal is undefined.
2025-04-04 15:16:39.734 [error] PowerShell v7.3.6 has reached end-of-support, please update!
2025-04-04 15:16:39.835 [info] Starting 'PowerShell (x64)' at: C:\Program Files\PowerShell\7\pwsh.exe
2025-04-04 15:16:40.216 [info] PowerShell process started with PID: 9908
2025-04-04 15:16:42.156 [warning] PowerShell process terminated or Extension Terminal was closed, PID: 9908
2025-04-04 15:16:42.459 [error] Extension Terminal is undefined.
2025-04-04 15:16:43.414 [error] PowerShell v7.3.6 has reached end-of-support, please update!
2025-04-04 15:16:43.414 [error] PowerShell session unavailable for debugging!
Is this Microsft’s way of forcing users to upgrad Powershell!?