(path: string)
| 1845 | } |
| 1846 | |
| 1847 | async getParentTasks(path: string): Promise<TaskInfo[]> { |
| 1848 | const task = await this.requireTask(path); |
| 1849 | const parents: TaskInfo[] = []; |
| 1850 | |
| 1851 | for (const project of task.projects ?? []) { |
| 1852 | const parent = await this.resolveTaskReference(project, task.path); |
| 1853 | if (parent) parents.push(parent); |
| 1854 | } |
| 1855 | |
| 1856 | return uniqueTasks(parents).map(copyTaskInfo); |
| 1857 | } |
| 1858 | |
| 1859 | async getSubtasks(path: string): Promise<TaskInfo[]> { |
| 1860 | const task = await this.requireTask(path); |
no test coverage detected