Skip to content

LinkProvider

原文链接

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

链接的提供者。

ts
interface LinkProvider {
    resolveLink?: ((link, token) => ProviderResult<ILink>);
    provideLinks(model, token): ProviderResult<ILinksList>;
}