Interface SemanticTokenProvider

interface SemanticTokenProvider {
    semanticTokensOptions: SemanticTokensOptions;
    tokenModifiers: Record<string, number>;
    tokenTypes: Record<string, number>;
    semanticHighlight(document: LangiumDocument<AstNode>, params: SemanticTokensParams, cancelToken?: CancellationToken): MaybePromise<SemanticTokens>;
    semanticHighlightDelta(document: LangiumDocument<AstNode>, params: SemanticTokensDeltaParams, cancelToken?: CancellationToken): MaybePromise<SemanticTokens | SemanticTokensDelta>;
    semanticHighlightRange(document: LangiumDocument<AstNode>, params: SemanticTokensRangeParams, cancelToken?: CancellationToken): MaybePromise<SemanticTokens>;
}

Implemented by

Properties

semanticTokensOptions: SemanticTokensOptions
tokenModifiers: Record<string, number>
tokenTypes: Record<string, number>

Methods