(query?: TaskNotesRuntimeTaskQuery)
| 1837 | } |
| 1838 | |
| 1839 | async listTasks(query?: TaskNotesRuntimeTaskQuery): Promise<TaskInfo[]> { |
| 1840 | if (!query) { |
| 1841 | const tasks = await this.plugin.cacheManager.getAllTasks(); |
| 1842 | return tasks.map(copyTaskInfo); |
| 1843 | } |
| 1844 | return (await this.queryTasks(query)).tasks; |
| 1845 | } |
| 1846 | |
| 1847 | async getParentTasks(path: string): Promise<TaskInfo[]> { |
| 1848 | const task = await this.requireTask(path); |
no test coverage detected