FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve warning when additional PowerShell isn't found by andyleejordan · Pull Request #5099 · PowerShell/vscode-powershell · GitHub

Improve warning when additional PowerShell isn't found - #5099

Merged
Andy Jordan (andyleejordan) merged 1 commit into
mainfrom
fix-warning
Nov 21, 2024
Merged

Andy Jordan (andyleejordan) merged 1 commit into
mainfrom
fix-warning

Conversation

Copy link
Copy Markdown
Member

Since we added logic which searches for possible intended permutations of the given additional PowerShell path, we needed to make the warning show only if none of the permutations were found. This was accomplished by suppressing it in the first iterator and then yielding it again after the permutations were exhausted with the warning unsuppressed.

Justin Grote (@JustinGrote) this bug just really annoyed me...I'm surprised no one reported it yet.

Since we added logic which searches for possible intended permutations
of the given additional PowerShell path, we needed to make the warning
show only if none of the permutations were found. This was accomplished
by suppressing it in the first iterator and then yielding it again after
the permutations were exhausted with the warning unsuppressed.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM and tests pass on my machine.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue-Bug A bug to squash.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL