Conversation

andyleejordan

Since $IsWindows doesn't exist in Windows PowerShell, with strict mode enabled and the ErrorActionPreference set to Stop, shell integration would cause the startup to crash. This was reported and fixed upstream too.

Resolves #2050.

Since `$IsWindows` doesn't exist in Windows PowerShell, with strict mode
enabled and the `ErrorActionPreference` set to `Stop`, shell integration
would cause the startup to crash. This was reported and fixed upstream
too.
@andyleejordan

Same change as integrated upstream in microsoft/vscode#190192.

@andyleejordanandyleejordan added this pull request to the merge queue Aug 22, 2023
Merged via the queue into main with commit 975ed6c Aug 22, 2023
@andyleejordanandyleejordan deleted the andyleejordan/fix-strict-mode branch August 22, 2023 17:58
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Status: Done

Successfully merging this pull request may close these issues.

Shell integration with PowerShell 5.1 breaks with $ErrorActionPreference = Stop and Set-StrictMode