Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.4k stars 134 forks source link

[BUG] Clicking on items in the tree view, moves the cursor randomly #769

Open cfgnunes opened 1 year ago

cfgnunes commented 1 year ago

Clicking on items in the tree view (from different files), moves the cursor to the other item, randomly.

Step to reproduce the bug

  1. Set these settings
"todo-tree.tree.groupedByTag": true,
"todo-tree.tree.showCountsInTree": true,
"todo-tree.tree.tagsOnly": true
  1. Close all files
  2. In tree view, click on some item.
  3. In tree view, click on some item (from another different file).

Error description

Unexpected behavior: the tree view will select another item, scrolling up (or down) the list.

This bug is a bit boring because when you are navigating between the items in the tree with the keyboard, the selection in the list stays crazy, moving up or down.

Expected behavior

After clicking on a item, the selection in the tree should stay in the same place.