From 058303325218f57053a9db007b120197420a1ef2 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Thu, 16 May 2024 14:58:03 +0300 Subject: [PATCH] chore: address comments --- .vscode/launch.template.json | 134 ++++++++++++++++++++--------------- 1 file changed, 77 insertions(+), 57 deletions(-) diff --git a/.vscode/launch.template.json b/.vscode/launch.template.json index 3f844d449512..7f8c7a70484c 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