( path: string, entryIndex: number, context?: TaskNotesMutationContext )
| 2239 | } |
| 2240 | |
| 2241 | private async deleteTimeEntry( |
| 2242 | path: string, |
| 2243 | entryIndex: number, |
| 2244 | context?: TaskNotesMutationContext |
| 2245 | ): Promise<TaskInfo> { |
| 2246 | const task = await this.requireTask(path); |
| 2247 | const updatedTask = await this.withMutationContext([task.path], context, () => |
| 2248 | this.plugin.taskService.deleteTimeEntry(task, entryIndex) |
| 2249 | ); |
| 2250 | return copyTaskInfo(updatedTask); |
| 2251 | } |
| 2252 | |
| 2253 | async getActiveTimeEntries(): Promise<ActiveTimeEntry[]> { |
| 2254 | const tasks = await this.plugin.cacheManager.getAllTasks(); |
no test coverage detected