Bug: VS Code Todo Tree Not Finding Ripgrep

No todos found anymore after the update to VS Code 1.122.0

Flo

Problem

This error message arises: Todo-Tree: Failed to find vscode-ripgrep - please install ripgrep manually and set 'todo-tree.ripgrep' to point to the executable

Solution

This comment on Github mentions the fix. Maybe you have to adjust the install path, also sometimes the build version is in the path, so it would have to be changed weekly…

To fix it, add this line to your settings.json in VS Code:

"todo-tree.ripgrep.ripgrep": "C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code\\<BUILD VERSION>\\resources\\app\\node_modules\\@vscode\\ripgrep-universal\\bin\\win32-x64\\rg.exe"