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

WIP: toggle completion caching whether number of candidates reaches limit #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kermorgant
Copy link
Contributor

@kermorgant kermorgant commented Aug 22, 2018

if the number of suggested candidates reaches the limit, the desired
candidate might be missing.

If that occurs, caching should not be used when typing more characters
of the completed string, as phpactor will be invoked with a longer
prefix, and have more chances to return the desired candidate.

fixes #50

EDIT : this still needs to be tested. I'll try to use test this in a near future by lowering phpactor's completion.completor.class.limit value in order to trigger that code more often

@kermorgant kermorgant changed the title toggle completion caching whether number of candidates reaches limit WIP: toggle completion caching whether number of candidates reaches limit Aug 22, 2018
if the number of suggested candidates reaches the limit, the desired
candidate might be missing.

If that occurs, caching should not be used when typing more characters
of the completed string, as phpactor will be invoked with a longer
prefix, and have more chances to return the desired candidate.
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.

Feature request : no completion caching when limit reached
1 participant