(task: TaskInfo, projectFile: TFile)
| 1859 | } |
| 1860 | |
| 1861 | private async addSelectedProjectToTask(task: TaskInfo, projectFile: TFile): Promise<void> { |
| 1862 | try { |
| 1863 | await addTaskToProject(this, task, projectFile); |
| 1864 | } catch (error) { |
| 1865 | tasknotesLogger.error("Failed to add selected project to task:", { |
| 1866 | category: "persistence", |
| 1867 | operation: "add-selected-project-task", |
| 1868 | error: error, |
| 1869 | }); |
| 1870 | new Notice( |
| 1871 | this.i18n.translate("contextMenus.task.organization.notices.addToProjectFailed") |
| 1872 | ); |
| 1873 | } |
| 1874 | } |
| 1875 | |
| 1876 | private async assignSelectedSubtaskToCurrentNote( |
| 1877 | parentFile: TFile, |
no test coverage detected