Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DocumentLinkProvider<T>

The document link provider defines the contract between extensions and feature of showing links in the editor.

Type parameters

层级

  • DocumentLinkProvider

索引

Methods(2)

provideDocumentLinks

  • Provide links for the given document. Note that the editor ships with a default provider that detects http(s) and file links.

    Parameters

    Returns ProviderResult<T[]>

    An array of document links or a thenable that resolves to such. The lack of a result can be signaled by returning undefined, null, or an empty array.

Optional resolveDocumentLink

  • Given a link fill in its target. This method is called when an incomplete link is selected in the UI. Providers can implement this method and return incomplete links (without target) from the provideDocumentLinks method which often helps to improve performance.

    Parameters

    • link: T

      The link that is to be resolved.

    • token: CancellationToken

      A cancellation token.

    Returns ProviderResult<T>

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹