Skip to content

Conversation

@andyleejordan
Copy link
Member

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
Copy link
Member Author

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

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

3 participants