DocumentRangeSemanticTokensProvider
ts
interface DocumentRangeSemanticTokensProvider {
getLegend(): SemanticTokensLegend;
provideDocumentRangeSemanticTokens(model, range, token): ProviderResult<SemanticTokens>;
}getLegend
- 语法:
getLegend(): SemanticTokensLegend - 返回值:SemanticTokensLegend
provideDocumentRangeSemanticTokens
- 语法:
provideDocumentRangeSemanticTokens(model, range, token): ProviderResult<SemanticTokens> - 参数:
- model: ITextModel
- range: Range
- token: CancellationToken
- 返回值:ProviderResult<SemanticTokens>
