( path: string, patch: TaskNotesTaskPatch, context?: TaskNotesMutationContext )
| 1946 | } |
| 1947 | |
| 1948 | async updateTask( |
| 1949 | path: string, |
| 1950 | patch: TaskNotesTaskPatch, |
| 1951 | context?: TaskNotesMutationContext |
| 1952 | ): Promise<TaskInfo> { |
| 1953 | const task = await this.requireTask(path); |
| 1954 | const updatedTask = await this.withMutationContext([task.path], context, () => |
| 1955 | this.plugin.taskService.updateTask(task, patch) |
| 1956 | ); |
| 1957 | return copyTaskInfo(updatedTask); |
| 1958 | } |
| 1959 | |
| 1960 | async completeTask( |
| 1961 | path: string, |
no test coverage detected