Interface TerminalLinkProvider<T>

A provider that enables detection and handling of links within terminals.

interface TerminalLinkProvider<T> {
    handleTerminalLink(link): ProviderResult<void>;
    provideTerminalLinks(context, token): ProviderResult<T[]>;
}

Type Parameters

Methods

  • Provide terminal links for the given context. Note that this can be called multiple times even before previous calls resolve, make sure to not share global objects (eg. RegExp) that could have problems when asynchronous usage may overlap.

    Parameters

    Returns ProviderResult<T[]>

    A list of terminal links for the given line.