fix: resolve command not found errors in VSCode debug tasks with NVM

- Wrap pnpm and npx commands in bash login shell to ensure NVM environment is loaded
- Use bash -l -c to source shell configuration files (.bashrc, .zshrc, etc.)
- Fixes issues where pnpm/npx are not found when running tasks through VSCode debug panel
- Particularly affects users with NVM, ZSH, or other shell-managed Node installations

Fixes #9469
This commit is contained in:
Roo Code 2025-11-21 12:43:12 +00:00
parent 038f830bf6
commit c7911da129

24
.vscode/tasks.json vendored
View file

@ -17,8 +17,14 @@
{
"label": "watch:webview",
"type": "shell",
"command": "pnpm --filter @roo-code/vscode-webview dev",
"command": "bash -l -c 'pnpm --filter @roo-code/vscode-webview dev'",
"group": "build",
"options": {
"shell": {
"executable": "bash",
"args": ["-l", "-c"]
}
},
"problemMatcher": {
"owner": "vite",
"pattern": {
@ -39,8 +45,14 @@
{
"label": "watch:bundle",
"type": "shell",
"command": "npx turbo watch:bundle",
"command": "bash -l -c 'npx turbo watch:bundle'",
"group": "build",
"options": {
"shell": {
"executable": "bash",
"args": ["-l", "-c"]
}
},
"problemMatcher": {
"owner": "esbuild",
"pattern": {
@ -61,8 +73,14 @@
{
"label": "watch:tsc",
"type": "shell",
"command": "npx turbo watch:tsc",
"command": "bash -l -c 'npx turbo watch:tsc'",
"group": "build",
"options": {
"shell": {
"executable": "bash",
"args": ["-l", "-c"]
}
},
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {