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

Method updateTaskInfoInCache

src/utils/TaskManager.ts:1225–1241  ·  view source on GitHub ↗
(path: string, taskInfo: TaskInfo)

Source from the content-addressed store, hash-verified

1223 }
1224
1225 updateTaskInfoInCache(path: string, taskInfo: TaskInfo): void {
1226 let filterIndexChanged = false;
1227 if (!this.isValidFile(path)) {
1228 this.pendingTaskInfoByPath.delete(path);
1229 filterIndexChanged = this.removeFilterIndexEntry(path);
1230 this.trigger("data-changed");
1231 return;
1232 }
1233
1234 this.pendingTaskInfoByPath.set(path, {
1235 ...taskInfo,
1236 id: taskInfo.id ?? path,
1237 path,
1238 });
1239 filterIndexChanged = this.updateFilterIndexesFromTaskInfo(path, taskInfo);
1240 this.trigger("file-updated", { path, updatedTask: taskInfo, filterIndexChanged });
1241 }
1242}

Callers

nothing calls this directly

Calls 6

isValidFileMethod · 0.95
deleteMethod · 0.65
triggerMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected