Open rcjsuen opened 4 years ago
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.
computeSemanticTokens
Range
https://github.com/rcjsuen/dockerfile-language-service/blob/3ea186ffff205faa084479145a6b4034a37cc8cd/src/main.ts#L127-L130
export interface DockerfileLanguageService { { computeSemanticTokens(content: string, range?: Range): SemanticTokens; }
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 aRange
argument for faster processing.https://github.com/rcjsuen/dockerfile-language-service/blob/3ea186ffff205faa084479145a6b4034a37cc8cd/src/main.ts#L127-L130