MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / assignPomodoroTask

Method assignPomodoroTask

src/api/TaskNotesAPI.ts:2472–2481  ·  view source on GitHub ↗
(
		path: string | null,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

2470 }
2471
2472 private async assignPomodoroTask(
2473 path: string | null,
2474 context?: TaskNotesMutationContext
2475 ): Promise<PomodoroState> {
2476 const task = path ? await this.requireTask(path) : undefined;
2477 await this.withMutationContext(task ? [task.path] : [], context, () =>
2478 this.plugin.pomodoroService.assignTaskToCurrentSession(task)
2479 );
2480 return this.copyPomodoroState(this.plugin.pomodoroService.getState());
2481 }
2482
2483 private async getPomodoroSessions(
2484 options?: PomodoroSessionsOptions

Callers 1

TaskNotesAPIClass · 0.95

Calls 5

requireTaskMethod · 0.95
withMutationContextMethod · 0.95
copyPomodoroStateMethod · 0.95
getStateMethod · 0.45

Tested by

no test coverage detected