Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix bug where error in prompt function crashed REPL#1866

Merged
andyleejordan merged 1 commit into
mainPowerShell/PowerShellEditorServices:mainfrom
andschwa/fix-promptPowerShell/PowerShellEditorServices:andschwa/fix-promptCopy head branch name to clipboard
Aug 3, 2022
Merged

Fix bug where error in prompt function crashed REPL#1866
andyleejordan merged 1 commit into
mainPowerShell/PowerShellEditorServices:mainfrom
andschwa/fix-promptPowerShell/PowerShellEditorServices:andschwa/fix-promptCopy head branch name to clipboard

Conversation

@andyleejordan

Copy link
Copy Markdown
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

@SeeminglyScience SeeminglyScience left a comment

Copy link
Copy Markdown
Collaborator

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.