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

Add highlights debounce #433

Merged
merged 6 commits into from
Dec 31, 2020
Merged

Add highlights debounce #433

merged 6 commits into from
Dec 31, 2020

Conversation

krassowski
Copy link
Member

@krassowski krassowski commented Dec 16, 2020

Improves performance of completion and highlights by minimising the number of highlight requests and GUI redraws (token checking, debouncing, acting on a single response only). Also fixes highlights not being updated on focus/blur.

References

Fixes #432 and fixes #431

Code changes

Added debouncer and multiple checks verifying if we want to ask server for highlights and then if we want to apply those.

User-facing changes

Highlights do not flicker when moving cursor quickly. Completions work slightly faster.

Backwards-incompatible changes

None

Chores

  • linted
  • tested
  • documented
  • changelog entry

@krassowski
Copy link
Member Author

krassowski commented Dec 16, 2020

  • tests - check if there are any robot tests for highlights, if not then add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant