Skip to content

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): void

Parameters:

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