A link on a terminal line.

Hierarchy (view full)

Constructors

Properties

Constructors

  • Creates a new terminal link.

    Parameters

    • startIndex: number

      The start index of the link on [TerminalLinkContext.line](#TerminalLinkContext.line].

    • length: number

      The length of the link on [TerminalLinkContext.line](#TerminalLinkContext.line].

    • Optional tooltip: string

      The tooltip text when you hover over this link.

      If a tooltip is provided, is will be displayed in a string that includes instructions on how to trigger the link, such as {0} (ctrl + click). The specific instructions vary depending on OS, user settings, and localization.

    Returns TerminalLink

Properties

length: number

The length of the link on [TerminalLinkContext.line](#TerminalLinkContext.line]

startIndex: number

The start index of the link on [TerminalLinkContext.line](#TerminalLinkContext.line].

tooltip?: string

The tooltip text when you hover over this link.

If a tooltip is provided, is will be displayed in a string that includes instructions on how to trigger the link, such as {0} (ctrl + click). The specific instructions vary depending on OS, user settings, and localization.