Skip to content

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

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
merged 1 commit into from
May 11, 2022

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 10, 2022

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

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
@rintaro
Copy link
Member Author

rintaro commented May 10, 2022

@swift-ci Please smoke test

@rintaro rintaro requested a review from ahoppen May 10, 2022 23:53
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rintaro rintaro merged commit 6ac87ba into swiftlang:main May 11, 2022
@rintaro rintaro deleted the ide-completion-rdar91892610 branch May 11, 2022 18:05
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