Todo-tree: todo tree is broken if new lines are before a task

Created on 17 Apr 2019  路  6Comments  路  Source: Gruntfuggly/todo-tree

C6165BB4-762C-4E2F-8138-AEE075D076DD

Here the example file:

# Headline

- [ ] task 1
- [ ] task 2




TODO: task a
TODO: task b
bug fixed

All 6 comments

Hi - I have a fix for this if you want to try it before I update the extension:

Edit .vscode/extensions/gruntfuggly.todo-tree-0.0.128/extension.js

and add
match[ 0 ] = match[ 0 ].substring( 1 );
at line 453, like this:

while( text[ match.index ] === '\n' || text[ match.index ] === '\r' )
{
    match.index++;
    match[ 0 ] = match[ 0 ].substring( 1 );                                                                 
}

Hi,

it was actually the extension version 0.0.129 i.e. .vscode/extensions/gruntfuggly.todo-tree-0.0.129/extension.js but yes, it fixed the problem!

Thanks, I'd be happy to see this fix in the next version asap

Great - thanks for confirming. There should be a new version today.

Hi @Gruntfuggly,

Did you postpone the release? The extension version is still at 0.0.129 in vscode

Best
Alex

Hi - yes, sorry. Things got on top of me over the weekend. There's a few more changes to add, so it will be in the next few days now.

Just uploaded a new version including the fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bitjson picture bitjson  路  7Comments

bitjson picture bitjson  路  8Comments

WORMSS picture WORMSS  路  6Comments

joserubicon picture joserubicon  路  9Comments

luqiudi picture luqiudi  路  9Comments