* Get all tasks by scanning all markdown files (just-in-time)
()
| 687 | * Get all tasks by scanning all markdown files (just-in-time) |
| 688 | */ |
| 689 | async getAllTasks(): Promise<TaskInfo[]> { |
| 690 | const tasks: TaskInfo[] = []; |
| 691 | const files = this.app.vault.getMarkdownFiles(); |
| 692 | |
| 693 | for (const file of files) { |
| 694 | if (!this.isValidFile(file.path)) continue; |
| 695 | |
| 696 | const taskInfo = await this.getTaskInfo(file.path); |
| 697 | if (taskInfo) { |
| 698 | tasks.push(taskInfo); |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | return tasks; |
| 703 | } |
| 704 | |
| 705 | /** |
| 706 | * Get all task paths from the filter index. |
no test coverage detected