* Get all currently tracked tasks (tasks with active time sessions)
()
| 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 |
no test coverage detected