| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Prevent CompleteExtensionMethods from appending intrinsic collection methods when a type-native member with the same name already exists in the completion candidate list. Fix PowerShell#24729
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Sorry, something went wrong.
|
@microsoft-github-policy-service agree |
Sorry, something went wrong.
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Prevent CompleteExtensionMethods from appending intrinsic collection methods (ForEach, Where, PSForEach, PSWhere) when a type-native member with that name already exists in the completion candidate list.
PR Context
Fix #24729
When completing members on objects defining native methods like List<T>.ForEach(Action<T>), tab completion returned two ForEach entries. The second was the intrinsic method which cannot be invoked due to method resolution prioritizing the native member. This change checks results before adding intrinsic methods so duplicates are omitted while non-colliding methods (like PSForEach) continue to be completed.
PR Checklist