Skip to main content

Function: attachRecentFilesContextMenu()

function attachRecentFilesContextMenu(
params: AttachRecentFilesContextMenuParams
): () => void;

Defined in: utils/app/lifecycle/recentFilesContextMenu.ts:91

Attach the β€œRecent Files” context menu behavior to the Open File button.

This function intentionally preserves the original behavior (including debug logging) because the menu behavior is heavily covered by strict tests.

Parameters​

params​

AttachRecentFilesContextMenuParams

Dependencies for wiring the context menu.

Returns​

A cleanup callback that detaches the root listener.

() => void