usernamehw/vscode-todo-md

Completed subtasks are not moved to archive file

enicklas opened this issue · 1 comments

For tasks with subtasks, only the highest level task is moved to the archive file by the action todomd.archiveCompletedTasks. The subtasks remain in the default file. I would expect subtasks to be archived as well.

Interesting, if the task with the subtasks is selected in the editor (normal text selection), archival works as expected.

Example:

Default file before archival

(A) Task with Subtasks {cm:2022-11-02T22:11:05}
    (B) Subtask 1 {cm:2022-11-02T22:11:06}
    (A) Subtask 2 {cm:2022-11-02T22:11:06}

Default file after archival

    (B) Subtask 1 {cm:2022-11-02T22:11:06}
    (A) Subtask 2 {cm:2022-11-02T22:11:06}

Archive file after archival

(A) Task with Subtasks {cm:2022-11-02T22:11:05}

That was quick, thanks!