Skip to content

[5.7][CodeCompletion] Don't print _ external parameter name in filterName #58875

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

Merged

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 12, 2022

Cherry-pick #58809 into release/5.7

  • Explanation: _ external parameter name in filterName in override completions. _ as a filterName is not something clients expect. This align with function call completions.
  • Scope: Code completion for overriding declarations
  • Risk: Low
  • Issues: rdar://91892610
  • Testing: Added regression test cases
  • Reviewer: Alex Hoppen (@ahoppen)

in override completions. '_' as a filterName is not something clients
expect. This align with function call completions.

But, unlike call-site completions, we do need '_' in the source text. So
instead of mark the chunk "annotation", make an exception in
'printCodeCompletionResultFilterName()'.

rdar://91892610
(cherry picked from commit 9e493e3)
@rintaro rintaro requested a review from a team as a code owner May 12, 2022 19:08
@rintaro
Copy link
Member Author

rintaro commented May 12, 2022

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 2, 2022

@swift-ci Please test

@rintaro rintaro merged commit 74099ee into swiftlang:release/5.7 Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants