diff --git a/src/config.js b/src/config.js index ca49faa8..71298f43 100644 --- a/src/config.js +++ b/src/config.js @@ -109,6 +109,14 @@ function ripgrepPath() rgPath = exePathIsDefined( path.join( vscode.env.appRoot, "node_modules.asar.unpacked/@vscode/ripgrep/bin/", exeName() ) ); if( rgPath ) return rgPath; + var platformArch = process.platform + "-" + process.arch; + + rgPath = exePathIsDefined( path.join( vscode.env.appRoot, "node_modules/@vscode/ripgrep-universal/bin/", platformArch, exeName() ) ); + if( rgPath ) return rgPath; + + rgPath = exePathIsDefined( path.join( vscode.env.appRoot, "node_modules.asar.unpacked/@vscode/ripgrep-universal/bin/", platformArch, exeName() ) ); + if( rgPath ) return rgPath; + return rgPath; } diff --git a/src/extension.js b/src/extension.js index 5c7bf02a..f0a35602 100644 --- a/src/extension.js +++ b/src/extension.js @@ -1260,7 +1260,7 @@ function activate( context ) // We can't do anything if we can't find ripgrep if( !config.ripgrepPath() ) { - vscode.window.showErrorMessage( "Todo-Tree: Failed to find vscode-ripgrep - please install ripgrep manually and set 'todo-tree.ripgrep' to point to the executable" ); + vscode.window.showErrorMessage( "Todo-Tree: Failed to find vscode-ripgrep - please install ripgrep manually and set 'todo-tree.ripgrep.ripgrep' to point to the executable" ); return; }