MCPcopy
hub / github.com/callumalpass/tasknotes / getTrackedTasks

Method getTrackedTasks

src/ui/StatusBarService.ts:156–168  ·  view source on GitHub ↗

* Get all currently tracked tasks (tasks with active time sessions)

()

Source from the content-addressed store, hash-verified

154 * Get all currently tracked tasks (tasks with active time sessions)
155 */
156 private async getTrackedTasks(): Promise<TaskInfo[]> {
157 // Force a fresh lookup of all tasks to avoid stale data
158 const allTasks = await this.plugin.cacheManager.getAllTasks();
159
160 return allTasks.filter((task) => {
161 // Skip archived tasks
162 if (task.archived) return false;
163
164 // Check if task has an active time session
165 const activeSession = this.plugin.getActiveTimeSession(task);
166 return activeSession !== null;
167 });
168 }
169
170 /**
171 * Render the status bar with tracked tasks information

Callers 2

updateStatusBarMethod · 0.95
handleStatusBarClickMethod · 0.95

Calls 2

getActiveTimeSessionMethod · 0.80
getAllTasksMethod · 0.45

Tested by

no test coverage detected