Workspace.openLinkText method
Workspace › openLinkText
Official
Open a link text.Signature:
openLinkText(linktext: string, sourcePath: string, newLeaf?: boolean | PaneType | undefined, openViewState?: OpenViewState | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| linktext | string | The link text. |
| sourcePath | string | The path of the file containing the link, used to resolve relative links. |
| newLeaf? | boolean | PaneType | undefined | Where to open the link. See {@link Workspace.getLeaf}. |
| openViewState? | OpenViewState | undefined | The view state to open the file with. |
Since: 0.16.0