Langium - v4.0.0
    Preparing search index...

    Interface SemanticTokenProvider

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

    Implemented by

    Index

    Properties

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

    Methods