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

Update semantic tokens asynchronously #298

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

fwcd
Copy link
Owner

@fwcd fwcd commented Jul 1, 2021

Instead of recompiling the document every time semantic tokens are requested, update them asynchronously together with the linter and notify the client once new tokens are ready.

This has the advantage of making the editor feel more responsive, may however also cause tokens to 'flicker' since a fresh BindingContext might be unavailable and thus cause an incomplete highlighting.

The issue is analogous to microsoft/vscode#89552 and could perhaps be resolved similarly by throwing a 'busy' error.

@fwcd fwcd added the enhancement New feature or request label Jul 1, 2021
@fwcd fwcd added the semantic tokens Related to semantic tokens/highlighting label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semantic tokens Related to semantic tokens/highlighting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant