MCPcopy
hub / github.com/callumalpass/tasknotes / showFileMenuFallback

Function showFileMenuFallback

src/ui/taskCardContextMenu.ts:74–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72): Promise<void> {
73 const file = plugin.app.vault.getAbstractFileByPath(taskPath);
74 const showFileMenuFallback = () => {
75 if (file instanceof TFile) {
76 showFileContextMenu(event, file, plugin);
77 }
78 };
79
80 try {
81 const task = await plugin.cacheManager.getTaskInfo(taskPath);

Callers 1

showTaskContextMenuFunction · 0.85

Calls 1

showFileContextMenuFunction · 0.85

Tested by

no test coverage detected