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

Provide semantic tokens for document delta #346

Open
radeksimko opened this issue Jan 4, 2021 · 0 comments
Open

Provide semantic tokens for document delta #346

radeksimko opened this issue Jan 4, 2021 · 0 comments
Labels
enhancement New feature or request textDocument/semanticTokens Semantic syntax highlighting

Comments

@radeksimko
Copy link
Member

Current Version

0.11.0

Use-cases

Currently the server only provides semantic tokens for a whole document. Documents are changed while the user is typing, which in turn means that tokens are requested frequently for any new version of the whole document, which can be suboptimal for larger documents.

A client can announce supports for deltas via relevant capability which effectively means it will maintain state of tokens for any given document itself and then only request deltas by providing the last resultId and then mutate the state based on received deltas.

Proposal

Support textDocument/semanticTokens/full/delta and opt into this feature via SemanticTokensOptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request textDocument/semanticTokens Semantic syntax highlighting
Projects
None yet
Development

No branches or pull requests

1 participant