From 1d5d14b49243918e46d33d4c306ae3333e844f92 Mon Sep 17 00:00:00 2001 From: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> Date: Tue, 21 Jun 2022 13:49:12 -0700 Subject: Added remote launch option --- .vscode/launch.json | 11 ++++++++++- .vscode/tasks.json | 17 ++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ff1f142a..be8f2983 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,16 @@ "version": "0.2.0", "configurations": [ { - "name": "Debug (Local)", + "name": "Run (Remote)", + "type": "python", + "request": "launch", + "console": "integratedTerminal", + "preLaunchTask": "remoterun", + "cwd": "", + "program": "", + }, + { + "name": "Run (Local)", "type": "python", "request": "launch", "program": "${workspaceFolder}/backend/main.py", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3f0f64fd..9377a7e8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -19,6 +19,18 @@ "command": "mkdir -p plugins", "problemMatcher": [] }, + { + "label": "remoterun", + "type": "shell", + "group": "none", + "dependsOn": [ + "updateremote", + "runpydeck" + ], + "detail": "Task for remote run launches", + "command": "exit 0", + "problemMatcher": [] + }, { "label": "dependencies", "type": "shell", @@ -122,7 +134,10 @@ "label": "allinone", "detail": "Build, deploy and run", "dependsOrder": "sequence", - "group": "none", + "group": { + "kind": "build", + "isDefault": true + }, "dependsOn": [ "buildall", "deployall", -- cgit v1.2.3