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:
| Parameter | Type | Description |
|---|---|---|
| linktext | string | The link text to open. |
| sourcePath | string | The path of the source file. |
| openViewState? | OpenViewState | undefined | The view state to open the link in. |
Returns: Promise<void> — A promise that resolves when the link is opened.