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

Method constructor

src/components/TaskContextMenu.ts:154–158  ·  view source on GitHub ↗
(options: TaskContextMenuOptions, menu: Menu = new ContextMenu())

Source from the content-addressed store, hash-verified

152 private targetDoc: Document = activeDocument;
153
154 constructor(options: TaskContextMenuOptions, menu: Menu = new ContextMenu()) {
155 this.menu = menu;
156 this.options = options;
157 this.buildMenu();
158 }
159
160 static addToMenu(menu: Menu, options: TaskContextMenuOptions): void {
161 new TaskContextMenu(options, menu);

Callers

nothing calls this directly

Calls 1

buildMenuMethod · 0.95

Tested by

no test coverage detected