Skip to content

MultiDocumentHighlightProvider

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.MultiDocumentHighlightProvider.html

可以跨多个文档提供文档高亮显示的提供程序。

ts
interface MultiDocumentHighlightProvider {
    selector: LanguageSelector;
    provideMultiDocumentHighlights(primaryModel, position, otherModels, token): ProviderResult<Map<Uri, DocumentHighlight[]>>;
}

selector

provideMultiDocumentHighlights