( path: string, date: string | null, context?: TaskNotesMutationContext )
| 1985 | } |
| 1986 | |
| 1987 | async rescheduleTask( |
| 1988 | path: string, |
| 1989 | date: string | null, |
| 1990 | context?: TaskNotesMutationContext |
| 1991 | ): Promise<TaskInfo> { |
| 1992 | const task = await this.requireTask(path); |
| 1993 | const updatedTask = await this.withMutationContext([task.path], context, () => |
| 1994 | this.plugin.taskService.updateProperty(task, "scheduled", date ?? undefined) |
| 1995 | ); |
| 1996 | return copyTaskInfo(updatedTask); |
| 1997 | } |
| 1998 | |
| 1999 | async archiveTask( |
| 2000 | path: string, |
no test coverage detected