Commit 975ed6c
committed
Fix shell integration for PowerShell 5.1 with strict mode
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.1 parent b9ae76b commit 975ed6c
File tree
1 file changed
+5
-1
lines changed- src/PowerShellEditorServices/Services/PowerShell/Host
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
667 | 671 | | |
668 | 672 | | |
669 | 673 | | |
| |||
0 commit comments