Interface DocumentHighlightProvider
Expand description
interface DocumentHighlightProvider {
provideDocumentHighlights(
model: ITextModel,
position: Position,
token: CancellationToken,
): ProviderResult<DocumentHighlight[]>;
}Methods§
§provideDocumentHighlights(
model: ITextModel,
position: Position,
token: CancellationToken,
): ProviderResult<DocumentHighlight[]>
provideDocumentHighlights(
model: ITextModel,
position: Position,
token: CancellationToken,
): ProviderResult<DocumentHighlight[]>
Provide a set of document highlights, like all occurrences of a variable or all exit-points of a function.
The document highlight provider interface defines the contract between extensions and the word-highlight-feature.