(path: string, taskInfo: TaskInfo)
| 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 | } |
nothing calls this directly
no test coverage detected