Skip to content
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

Fix bug where error in prompt function crashed REPL #1866

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

andyleejordan
Copy link
Member

Double-whammy fix by both setting ThrowOnError to false, and catching a more generic PowerShell RuntimeException. Plus a regression test!

Fixes PowerShell/vscode-powershell#4073.

@andyleejordan andyleejordan requested a review from a team August 2, 2022 20:30
Double-whammy fix by both setting `ThrowOnError` to false, and catching
a more generic PowerShell `RuntimeException`. Plus a regression test!
@andyleejordan andyleejordan changed the title Fix bug where error in prompt function crashed REPL loop Fix bug where error in prompt function crashed REPL Aug 2, 2022
@andyleejordan andyleejordan enabled auto-merge (squash) August 3, 2022 00:00
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andyleejordan andyleejordan merged commit 9dec136 into main Aug 3, 2022
@andyleejordan andyleejordan deleted the andschwa/fix-prompt branch August 3, 2022 15:11
@andyleejordan andyleejordan mentioned this pull request Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Visual Studio Code Host hogs CPU and floods error log with error "Unrecognized option: --version"
2 participants