Workspace.handleLinkContextMenu method
Workspace › handleLinkContextMenu
Unofficial
Handle the context menu for an internal link.Signature:
handleLinkContextMenu(menu: Menu, linkText: string, sourcePath: string, leaf?: WorkspaceLeaf | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| menu | Menu | The context menu. |
| linkText | string | The internal link text. |
| sourcePath | string | The source path of the link. |
| leaf? | WorkspaceLeaf | undefined | The leaf to add context actions for. |
Returns: void
Since: 0.12.10