Skip to content

Use SourceKit's not_recommended field to populate deprecated in Code Completion responses #203

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
Dec 11, 2019

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 3, 2019

The not_recommended flag in SourceKit to some degree matches the deprecated field in LSP. Instead of not providing any deprecation information, it might be a good idea to map the fields, even if they don't match exactly.

@ahoppen ahoppen requested a review from benlangmuir as a code owner December 3, 2019 22:49
@benlangmuir
Copy link
Contributor

Does this really depend on the textedit change, or it just happens to include it? The not_recommended -> deprecated part of this LGTM.

@ahoppen
Copy link
Member Author

ahoppen commented Dec 4, 2019

It just causes merge conflicts since the two changes are too close together. So I decided it’s easier to just merge one after the other.

@ahoppen ahoppen force-pushed the not-recommended-to-deprecated branch from 437d059 to 949c1e1 Compare December 6, 2019 22:23
@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2019

@swift-ci Please test

@ahoppen ahoppen force-pushed the not-recommended-to-deprecated branch from 949c1e1 to acd8843 Compare December 10, 2019 19:49
@ahoppen
Copy link
Member Author

ahoppen commented Dec 10, 2019

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 10, 2019

@swift-ci Please test macOS

@ahoppen ahoppen merged commit c52b337 into swiftlang:master Dec 11, 2019
@ahoppen ahoppen deleted the not-recommended-to-deprecated branch December 11, 2019 00:18
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