Skip to content

WorkspaceLeaf.openLinkText method

WorkspaceLeaf › openLinkText

Unofficial

Open a link in the current leaf.

Signature:

openLinkText(linktext: string, sourcePath: string, openViewState?: OpenViewState | undefined): Promise<void>

Parameters:

ParameterTypeDescription
linktextstringThe link text to open.
sourcePathstringThe path of the source file.
openViewState?OpenViewState | undefinedThe view state to open the link in.

Returns: Promise<void>A promise that resolves when the link is opened.