vscode-todo-plus icon indicating copy to clipboard operation
vscode-todo-plus copied to clipboard

[comments] token does not work

Open dotvihar opened this issue 2 years ago • 4 comments

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?

dotvihar avatar May 31 '22 10:05 dotvihar

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

fabiospampinato avatar Nov 15 '22 20:11 fabiospampinato

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

dotvihar avatar Nov 16 '22 09:11 dotvihar

Ok it seems just broken then, strange 🤔

fabiospampinato avatar Nov 16 '22 12:11 fabiospampinato

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).

CodingFan72 avatar Nov 21 '22 17:11 CodingFan72