diff --git a/.vscode/launch.template.json b/.vscode/launch.template.json index 3f844d44951..7f8c7a70484 100644 --- a/.vscode/launch.template.json +++ b/.vscode/launch.template.json @@ -1,59 +1,79 @@ { - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "name": "Attach", - "port": 9229, - "request": "attach", - "skipFiles": ["/**"] - }, - { - "type": "node", - "request": "launch", - "name": "Beacon", - "skipFiles": ["/**"], - "smartStep": true, - "program": "${workspaceFolder}/packages/cli/bin/lodestar.js", - "args": ["beacon"], - "console": "integratedTerminal" - }, - { - "type": "node", - "request": "launch", - "name": "Dev", - "skipFiles": ["/**"], - "smartStep": true, - "program": "${workspaceFolder}/packages/cli/bin/lodestar.js", - "args": ["dev"], - "console": "integratedTerminal" - }, - { - "name": "Test Current File", - "type": "node", - "request": "launch", - "program": "${workspaceFolder}/node_modules/.bin/vitest", - "args": ["--run", "${file}", "-t", "${input:testName}"], - "cwd": "${workspaceFolder}/${input:packageName}", - "console": "integratedTerminal", - "skipFiles": ["/**"] + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "name": "Attach", + "port": 9229, + "request": "attach", + "skipFiles": [ + "/**" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Beacon", + "skipFiles": [ + "/**" + ], + "smartStep": true, + "program": "${workspaceFolder}/packages/cli/bin/lodestar.js", + "args": [ + "beacon" + ], + "console": "integratedTerminal" + }, + { + "type": "node", + "request": "launch", + "name": "Dev", + "skipFiles": [ + "/**" + ], + "smartStep": true, + "program": "${workspaceFolder}/packages/cli/bin/lodestar.js", + "args": [ + "dev" + ], + "console": "integratedTerminal" + }, + { + "name": "Test Current File", + "type": "node", + "request": "launch", + "program": "${workspaceFolder}/node_modules/.bin/vitest", + "args": [ + "--run", + "${file}", + "-t", + "${input:testName}", + "--pool", + "threads", + "--poolOptions.threads.singleThread" + ], + "cwd": "${workspaceFolder}/${input:packageName}", + "console": "integratedTerminal", + "skipFiles": [ + "/**" + ] + } + ], + "inputs": [ + { + "id": "packageName", + "type": "command", + "command": "extension.commandvariable.transform", + "args": { + "text": "${relativeFileDirname}", + "find": "^(packages/[^/]+).*", + "replace": "$1" } - ], - "inputs": [ - { - "id": "packageName", - "type": "command", - "command": "extension.commandvariable.transform", - "args": { - "text": "${relativeFileDirname}", - "find": "^(packages/[^/]+).*", - "replace": "$1" - } - }, - { - "id": "testName", - "type": "promptString", - "description": "Enter the test name to run, leave empty to run all" - } - ] - } \ No newline at end of file + }, + { + "id": "testName", + "type": "promptString", + "description": "Enter the test name to run, leave empty to run all" + } + ] +} \ No newline at end of file