Add unified attribute for completion for Encoding parameter.#7732
Add unified attribute for completion for Encoding parameter.#7732iSazonov merged 3 commits intoPowerShell:masterfrom ThreeFive-O:Fix7724
Conversation
iSazonov
left a comment
There was a problem hiding this comment.
I think we could add short name in TypeResolver.cs
There was a problem hiding this comment.
I think the comment should describe functionality not motivation.
There was a problem hiding this comment.
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.
Other than rewording the Summary comment for the attribute class, this looks good.
There was a problem hiding this comment.
Suggest instead...
Provides the set of Encoding values for tab completion of an Encoding parameter.
There was a problem hiding this comment.
@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