Skip to content
Commit a04ecbe1 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Improve lsp semanticTokens range highlighting

Currently we debounce whenever the user scrolls the view. This results
in flickering sometimes, especially if the server is not very fast the
flickering can be annoying.

With this change, we optimize in a different way:
- Request highlighting for a bigger range than the current view range
- If the user scrolls, ignore it if the current highlighted range
  contains the scrolled region otherwise request new highlights
  immediately

This results in a much better user experience in my opinion.
parent 0fee4a8a
Pipeline #556407 passed with stage
in 4 minutes and 8 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment