PowerShell / PowerShellEditorServices

A common platform for PowerShell development support in any editor or application!
MIT License
616 stars 209 forks source link

Fix shell integration for PowerShell 5.1 with strict mode #2052

Closed andyleejordan closed 10 months ago

andyleejordan commented 11 months ago

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 https://github.com/PowerShell/PowerShellEditorServices/issues/2050.

andyleejordan commented 11 months ago

Same change as integrated upstream in https://github.com/microsoft/vscode/pull/190192.