( path: string | null, context?: TaskNotesMutationContext )
| 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 |
no test coverage detected