Group by tag mode drops todos fix#832
Conversation
|
LGTM @Gruntfuggly This fix would help solve my problem. If you got time, pls check this out. ❤ |
|
I have been testing this PR, and found a new issue this PR would introduce: In flat or tree mode with group-by-tags enabled, when the todo tag is changed or removed, tree nodes for the old todo tag remain even if there are no more todos using that tag. For example, if the file only has a single I have narrowed down where this is happening to at this point in the reset method: What happens is at this point in the code execution, when
One theory I have is the |


This PR is a fix for #749 (while also maintaining the fix for #562)
In full transparency, I don't really understand how the
TreeNodeProvider.resetmethod works. This PR is my attempt to merge the fix for both issues despite a lack of understanding of the logic. More details on this fix can be found hereI've done some testing of all the different TODOs view modes (flat/list/tags-only and group-by tags on/off) and it seems to fix both issues without other side effects.
@Gruntfuggly I think a fix for #749 should be considered a high priority as it is causing todos to not be displayed. Please let me know if I can help in any way.