Skip to content

Fix shell integration for PowerShell 5.1 with strict mode #2052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2023

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
2 participants