Interface DocumentSemanticTokensProvider

interface DocumentSemanticTokensProvider {
    onDidChange?: IEvent<void>;
    getLegend(): SemanticTokensLegend;
    provideDocumentSemanticTokens(
        model: ITextModel,
        lastResultId: string,
        token: CancellationToken,
    ): ProviderResult<SemanticTokens | SemanticTokensEdits>;
    releaseDocumentSemanticTokens(resultId: string): void;
}

Properties§

§readonly onDidChange?: IEvent<void>

Methods§

§

getLegend(): SemanticTokensLegend

§

provideDocumentSemanticTokens(
    model: ITextModel,
    lastResultId: string,
    token: CancellationToken,
): ProviderResult<SemanticTokens | SemanticTokensEdits>

§

releaseDocumentSemanticTokens(resultId: string): void