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

Fields

provideTerminalLinks(context:TerminalLinkContext, token:CancellationToken):ProviderResult<Array<T>>

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:

context

Information about what links are being provided for.

token

A cancellation token.

Returns:

A list of terminal links for the given line.

handleTerminalLink(link:T):ProviderResult<Void>

Handle an activated terminal link.

Parameters:

link

The link to handle.