Interface MultiDocumentHighlightProvider
Expand description
interface MultiDocumentHighlightProvider {
selector: LanguageSelector;
provideMultiDocumentHighlights(
primaryModel: ITextModel,
position: Position,
otherModels: ITextModel[],
token: CancellationToken,
): ProviderResult<Map<Uri, DocumentHighlight[]>>;
}Properties§
§
readonly selector: LanguageSelectorMethods§
§provideMultiDocumentHighlights(
primaryModel: ITextModel,
position: Position,
otherModels: ITextModel[],
token: CancellationToken,
): ProviderResult<Map<Uri, DocumentHighlight[]>>
provideMultiDocumentHighlights(
primaryModel: ITextModel,
position: Position,
otherModels: ITextModel[],
token: CancellationToken,
): ProviderResult<Map<Uri, DocumentHighlight[]>>
Provide a Map of Uri --> document highlights, like all occurrences of a variable or all exit-points of a function.
Used in cases such as split view, notebooks, etc. where there can be multiple documents with shared symbols.
A provider that can provide document highlights across multiple documents.