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 API for retrieving semantic tokens of a range #66

Open
rcjsuen opened this issue Apr 26, 2020 · 0 comments
Open

Provide API for retrieving semantic tokens of a range #66

rcjsuen opened this issue Apr 26, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Apr 26, 2020

Clients may want to only fetch the semantic tokens of the visible lines in the editor instead of the entire file. We should change the function of computeSemanticTokens so that it can optionally take a Range argument for faster processing.

/**
* Experimental API subject to change.
*/
computeSemanticTokens(content: string): SemanticTokens;

export interface DockerfileLanguageService { {
    computeSemanticTokens(content: string, range?: Range): SemanticTokens; 
}
@rcjsuen rcjsuen added the enhancement New feature or request label Apr 26, 2020
@rcjsuen rcjsuen self-assigned this Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant