fabiospampinato / vscode-todo-plus

Manage todo lists with ease. Powerful, easy to use and customizable.
MIT License
902 stars 228 forks source link

[comments] token does not work #355

Open dotvihar opened 2 years ago

dotvihar commented 2 years ago

Hi,

I tried use [comments] token, but it not work. image As you see there is "Comments: 0" in the project row, but there is 3 comments in the project. image

The setup for Project:Text is the next: DONE([finished]/[all] [percentage]%) OPEN([pending]) | Estimated time: [est] | Elapsed time: [elapsed] ([lasted] + [wasted]) | Comments: [comments]

Same in json: "todo.statistics.project.text": "DONE([finished]/[all] [percentage]%) OPEN([pending]) | Estimated time: [est] | Elapsed time: [elapsed] ([lasted] + [wasted]) | Comments: [comments]",

Would you look at what could be wrong?

fabiospampinato commented 1 year ago

It looks like a bug in the extension 🤔 Does it change anything if you dedent those comments to align them with the parent tasks?

dotvihar commented 1 year ago

It does not change anything. On any indentation level it gives the same result which is always 0.

fabiospampinato commented 1 year ago

Ok it seems just broken then, strange 🤔

CodingFan72 commented 1 year ago

Hi, it is strange:

The error only occurs (with projects) within the file.

In the status bar you can see the correct number (if you use the token there).