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

Method deleteTimeEntry

src/api/TaskNotesAPI.ts:2241–2251  ·  view source on GitHub ↗
(
		path: string,
		entryIndex: number,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

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();

Callers 1

TaskNotesAPIClass · 0.95

Calls 3

requireTaskMethod · 0.95
withMutationContextMethod · 0.95
copyTaskInfoFunction · 0.85

Tested by

no test coverage detected