MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / buildTaskContextMenu

Method buildTaskContextMenu

src/api/TaskNotesAPI.ts:1757–1768  ·  view source on GitHub ↗
(
		options: TaskNotesRuntimeTaskMenuOptions
	)

Source from the content-addressed store, hash-verified

1755 }
1756
1757 private async buildTaskContextMenu(
1758 options: TaskNotesRuntimeTaskMenuOptions
1759 ): Promise<TaskContextMenu> {
1760 const task = await this.requireTask(options.taskPath);
1761 return new TaskContextMenu({
1762 task,
1763 plugin: this.plugin,
1764 targetDate: options.targetDate ?? new Date(),
1765 promoteOccurrenceControls: options.promoteOccurrenceControls,
1766 onUpdate: options.onUpdate ?? this.defaultTaskMenuUpdateHandler(),
1767 });
1768 }
1769
1770 private defaultTaskMenuUpdateHandler(): () => void {
1771 return () => {

Callers 2

showTaskMenuMethod · 0.95
showTaskMenuAtElementMethod · 0.95

Calls 2

requireTaskMethod · 0.95

Tested by

no test coverage detected