Skip to content

Enforce max completions over all plugins#1256

Merged
pepeiborra merged 8 commits into
masterfrom
max-completions-hls
Jan 24, 2021
Merged

Enforce max completions over all plugins#1256
pepeiborra merged 8 commits into
masterfrom
max-completions-hls

Conversation

@pepeiborra

Copy link
Copy Markdown
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.

@ndmitchell ndmitchell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

Comment thread plugins/default/src/Ide/Plugin/Pragmas.hs
Comment thread ghcide/src/Development/IDE/Plugin/HLS.hs Outdated
Comment thread ghcide/src/Development/IDE/Plugin/HLS.hs
Comment thread ghcide/src/Development/IDE/Plugin/HLS.hs Outdated
Comment thread test/functional/Completion.hs
@pepeiborra
pepeiborra merged commit e06469f into master Jan 24, 2021
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