-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add unified attribute for completion for Encoding parameter. #7732
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
Conversation
iSazonov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could add short name in TypeResolver.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the comment should describe functionality not motivation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I changed it.
|
@iSazonov The |
|
Sorry TypeResolver.cs is only for public types. |
|
We have not received a negative feedback on encoding sets, we can consider its stable and move to one code place. |
|
IMHO, the PR summary could be clearer. Something like: Provide a tab completion attribute (ArgumentEncodingCompletion) for an Encoding parameter. I'm not sure what the second statement means; does it or doesn't it. If so, what is it improving. |
dantraMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than rewording the Summary comment for the attribute class, this looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest instead...
Provides the set of Encoding values for tab completion of an Encoding parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dantraMSFT Thank you very much for this helpful suggestions. Fixed it.
|
@dantraMSFT Thank you very much. I've updated the PR summary accordingly. |
|
@ThreeFive-O It's very clear now. Thanks for the updates. |
|
@ThreeFive-O Please resolve the merge conflict. |
|
@iSazonov I rebased. PowerShell-CI-macos fails, but on another cmdlet: |
|
Reopen the PR to restart CIs. |
|
@TravisEz13 Again Update-Help on MacOS failed. Perhaps a bug since #6352 - I added new comment there. I think we can merge the PR, cannot we? |
|
Restarted "PowerShell-CI-macos". |
|
@ThreeFive-O Thanks for your contribution! |
PR Summary
Fix #7724
Provide a tab completion attribute (ArgumentEncodingCompletion) for an Encoding parameter.
This PR should fix the duplicated code warning in CodeFactor as mentioned in issue #7724.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests