Prevent tab completion if the word to complete is a single dash#16781
Prevent tab completion if the word to complete is a single dash#16781PaulHigin merged 5 commits intoPowerShell:masterfrom
Conversation
|
@iSazonov I can't see your suggestion/code review anymore. Can you please add it again? |
|
@iSazonov Nevermind. I found your suggestion and updated the code. |
@ayousuf23 Sorry, I removed the post soon because it was wrong. Please remove your last commit and add a test for scenario you fix. |
c8875e5 to
122b4d9
Compare
|
@iSazonov I reverted the most recent commit. Where should I add the test? |
I think in TabCompletion.Tests.ps1 |
|
@iSazonov I added a test. |
|
@iSazonov Is there anything remaining for me to do in order to get the PR merged? |
|
@ayousuf23 We are waiting @daxian-dbw review. |
|
@daxian-dbw Can you please review this PR? |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
daxian-dbw
left a comment
There was a problem hiding this comment.
@ayousuf23 Sorry for the delay of review.
Thanks for the contribution! I made a minor update and added a comment.
|
🎉 Handy links: |
PR Summary
When using tab completion, functions with
-are wrongfully selected. In order to prevent this, an additional check is added in this PR to prevent tab completion when the word to complete is a single dash.PR Context
This PR resolves #16577. It simply adds an additional condition (making sure the word to complete is not a single dash) that should be satisfied before PowerShell performs tab completion.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).