From f4fb3f9b47d9db67ff4354a97ae6eb428eaa9436 Mon Sep 17 00:00:00 2001 From: Alex Carney Date: Sun, 13 Oct 2024 19:27:29 +0100 Subject: [PATCH] vscode: Clean up launch.json --- .vscode/launch.json | 62 +++++---------------------------------------- 1 file changed, 6 insertions(+), 56 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3bd2b184..fdc52dd4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,27 +1,6 @@ { "version": "0.2.0", - "inputs": [ - { - "id": "workspace", - "type": "pickString", - "description": "Pick the workspace root for this session", - "default": "code/", - "options": [ - { - "label": "code", - "value": "code" - }, - { - "label": "docs", - "value": "docs" - }, - { - "label": "demo", - "value": "lib/esbonio/tests/workspaces/demo" - }, - ] - } - ], + "inputs": [], "configurations": [ { "name": "VSCode Extension", @@ -38,39 +17,9 @@ ], "preLaunchTask": "${defaultBuildTask}", }, - { - "name": "VSCode Web Extension", - "type": "extensionHost", - "debugWebWorkerHost": true, - "request": "launch", - "args": [ - "--extensionDevelopmentPath=${workspaceRoot}/code", - "--extensionDevelopmentKind=web", - "--folder-uri=${workspaceRoot}/${input:workspace}" - ], - "outFiles": [ - "${workspaceRoot}/code/dist/browser/**/*.js" - ], - "preLaunchTask": "${defaultBuildTask}", - }, - { - "name": "Docs", - "type": "python", - "request": "launch", - "module": "sphinx.cmd.build", - "args": [ - "-M", - "html", - ".", - "_build", - "-Ea" - ], - "python": "${command:python.interpreterPath}", - "cwd": "${workspaceFolder}/docs" - }, { "name": "pytest: esbonio", - "type": "python", + "type": "debugpy", "request": "launch", "module": "pytest", "justMyCode": false, @@ -84,7 +33,7 @@ }, { "name": "Python: Attach", - "type": "python", + "type": "debugpy", "request": "attach", "connect": { "host": "localhost", @@ -92,11 +41,12 @@ }, "pathMappings": [ { - "localRoot": "${workspaceFolder}/lib/esbonio", + "localRoot": "${workspaceFolder}", "remoteRoot": "." } ], - "justMyCode": false + "justMyCode": false, + "subProcess": true, }, ], }