Skip to content

[code-completion] Add filter rules for description in addition filter-name #10329

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

benlangmuir
Copy link
Contributor

  • Explanation: This is an extension to our "filter-rules" API for code-completion, which allows the client of sourcekitd to create custom filters to hide/show various kinds of completions. The new rule is for filtering based on the description text of the completion.
  • Scope: Only affects clients that adopt the new API.
  • Radar: rdar://problem/28920034
  • Risk: Low; only affects clients that adopt the new API.
  • Testing: Regression tests added.

…-name

The filter name isn't helpful if you want to make rules about specific
overloads - e.g. only show the [Int] subscript on Array.

rdar://problem/28920034
@benlangmuir
Copy link
Contributor Author

@swift-ci please test

@benlangmuir benlangmuir merged commit 6ca8ec4 into swiftlang:swift-4.0-branch Jun 16, 2017
@benlangmuir benlangmuir deleted the cc-rule-desc-4.0 branch June 16, 2017 22:00
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.

1 participant