Skip to content
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

Enforce max completions over all plugins #1256

Merged
merged 8 commits into from
Jan 24, 2021
Merged

Conversation

pepeiborra
Copy link
Collaborator

In #1218 I introduced a maxCompletions config setting, and added code to enforce it in ghcide.

This PR applies the max completions limit to all plugins, not just ghcide. While doing this I noticed that the pragmas plugin was producing completions without considering the prefix, this is fixed now.

Copy link
Collaborator

@ndmitchell ndmitchell left a comment

Choose a reason for hiding this comment

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

Nice!

plugins/default/src/Ide/Plugin/Pragmas.hs Show resolved Hide resolved
ghcide/src/Development/IDE/Plugin/HLS.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Plugin/HLS.hs Show resolved Hide resolved
ghcide/src/Development/IDE/Plugin/HLS.hs Outdated Show resolved Hide resolved
test/functional/Completion.hs Show resolved Hide resolved
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