Skip to content

[Completion] Remove unused DocWords #39084

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
Aug 31, 2021
Merged

[Completion] Remove unused DocWords #39084

merged 1 commit into from
Aug 31, 2021

Conversation

bnbarham
Copy link
Contributor

The various keyword/recommended/etc fields were parsed and added to
completions, but never actually plumbed through SourceKit. Since they're
still unused and the implementation is not particularly lightweight,
just remove for now.

Resolves rdar://82464220

@bnbarham bnbarham requested a review from rintaro August 28, 2021 02:08
@bnbarham
Copy link
Contributor Author

@rintaro I've left the documentation in the test files for now, do you think it's worth removing them as well (eg. test/Inputs/clang-importer-sdk/usr/include/ctypes.h).

@bnbarham
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1f614deeec187d80af6f5eea38efec89223fc792

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1f614deeec187d80af6f5eea38efec89223fc792

The various keyword/recommended/etc fields were parsed and added to
completions, but never actually plumbed through SourceKit. Since they're
still unused and the implementation is not particularly lightweight,
just remove for now.

Resolves rdar://82464220
@bnbarham
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

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

Thank you!

I've left the documentation in the test files for now, do you think it's worth removing them as well

Let's keep it for now, to ensure that those fields don't crash the doc-comment parser.

@bnbarham
Copy link
Contributor Author

Let's keep it for now, to ensure that those fields don't crash the doc-comment parser.

Sounds good, thanks.

@bnbarham bnbarham merged commit a375ffe into main Aug 31, 2021
@bnbarham bnbarham deleted the remove-keywords branch August 31, 2021 00: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.

3 participants