Repository navigation
Improve member completion - #16504
Dongbo Wang (daxian-dbw) merged 13 commits into
Conversation
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Co-authored-by: Ilya <[email protected]>
Ilya (iSazonov)
left a comment
There was a problem hiding this comment.
Formally LGTM but I don't understand why we need cases like '[System.Management.Automation.ActionPreference]::Break. ^'. It's up to other reviewers.
For me it's just for the sake of consistency. If the parser allows it then I don't see why the completion code shouldn't support it either. |
|
Travis Plunk (@TravisEz13) Can you please review? |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
Dongbo Wang (@daxian-dbw) Can you please review? |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Co-authored-by: Dongbo Wang <[email protected]>
Co-authored-by: Dongbo Wang <[email protected]>
|
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) |
Dongbo Wang (daxian-dbw)
left a comment
There was a problem hiding this comment.
LGTM. Thanks MartinGC94!
|
🎉 Handy links: |
PR Summary
Fixes #10529
The member completion code wrongly assumed that the parent to the error statement was what should be completed, instead of traversing up to where the cursor actually was. Now you should get accurate member completion regardless of where the cursor is.
This also adds member completion for switch statements like:
Allows completion of members/attribute arguments regardless of surrounding spaces/new lines (If the parser would allow it in that context).
Adds a test for a seemingly untested scenario:
ls "".<Tab>And filters out attribute arguments that have already been used in the attribute, for example:
will not show Position again.
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).