Gruntfuggly / todo-tree

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

Icon not working after a typo in hex color #784

Open maxpatiiuk opened 1 year ago

maxpatiiuk commented 1 year ago
  1. Set the foreground to a hex color without a #. i.e "foreground": "C00006",
  2. Set an icon (i.e "icon": "flame",)
  3. Icon is displayed, but using black color
  4. Fix the foreground color: "foreground": "#C00006",
  5. The icon is still displayed using the black color

Workarround: manually delete the incorrectly generated icon from /Users/<username>/Library/Application Support/Code/User/globalStorage/gruntfuggly.todo-tree

Bug happens here: https://github.com/Gruntfuggly/todo-tree/blob/a6f60e0ce830c4649ac34fc05e5a1799ec91d151/src/icons.js#L41-L42

The bug was replicated in todo-tree.highlights.customHighlight, but might happen in todo-tree.highlights.defaultHighlight too

System Details

Extension version: v.0.0226

VS Code Version:

Version: 1.81.1 Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794 Date: 2023-08-09T22:40:25.698Z Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4_1) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.81.1 Chrome/108.0.5359.215 Electron/22.3.18 Safari/537.36