Skip to content

[CodeCompletion] Remove a hack adding type matching nominal types #41787

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
Mar 14, 2022

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Mar 11, 2022

Previously we didn't give any type relations to cached imported symbols. So there was a hack to add the type matching nominal type with type relation manually, which caused duplicated candidates, one from the cache, one added manually.

Now that we have type relations for cached symbols so we don't need this hack anymore.

rdar://90136020

@rintaro
Copy link
Member Author

rintaro commented Mar 11, 2022

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Mar 11, 2022

@swift-ci Please smoke test Linux

Previously we didn't give any type relations to cached imported symbols.
So there was a hack to add the type matching nominal type with type
relation manually, which caused duplicated candiates, one from the
cache, one added manually.
Now that we have type relations for cached symbols so we don't need this
hack anymore.

rdar://90136020
@rintaro rintaro force-pushed the ide-completion-rdar90136020 branch from af20792 to 504e73d Compare March 11, 2022 18:51
@rintaro
Copy link
Member Author

rintaro commented Mar 11, 2022

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Mar 11, 2022

@swift-ci Please smoke test Linux

1 similar comment
@rintaro
Copy link
Member Author

rintaro commented Mar 11, 2022

@swift-ci Please smoke test Linux

@rintaro rintaro requested a review from ahoppen March 11, 2022 22:55
@ahoppen
Copy link
Member

ahoppen commented Mar 14, 2022

Fixing a test case by removing code always sounds good to me 👍

@ahoppen
Copy link
Member

ahoppen commented Mar 14, 2022

@swift-ci Please smoke test Windows

@rintaro rintaro merged commit b08993f into swiftlang:main Mar 14, 2022
@rintaro rintaro deleted the ide-completion-rdar90136020 branch March 16, 2022 23:10
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