From 695b75c3fe26d8e1c168fb7dae38084541dd9c7c Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl Date: Wed, 26 May 2021 16:27:22 +0200 Subject: [PATCH] Rename tasks and run configs --- .vscode/launch.json | 34 +++++++++++++++------------------- .vscode/tasks.json | 44 +++++++++++++++----------------------------- 2 files changed, 30 insertions(+), 48 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2f1d3163b..324ba8608 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,23 +5,14 @@ "version": "0.2.0", "configurations": [ { - "name": "Deploy and Configure", + "name": "Run [build]", "type": "coreclr", "request": "launch", - "preLaunchTask": "deploy to _layout", + "preLaunchTask": "build runner layout", "program": "${workspaceFolder}/_layout/bin/Runner.Listener", - "args": ["configure"], - "cwd": "${workspaceFolder}/src", - "console": "integratedTerminal", - "requireExactSource": false, - }, - { - "name": "Build and Run", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build to _layout", - "program": "${workspaceFolder}/_layout/bin/Runner.Listener", - "args": ["run"], + "args": [ + "run" + ], "cwd": "${workspaceFolder}/src", "console": "integratedTerminal", "requireExactSource": false, @@ -31,21 +22,26 @@ "type": "coreclr", "request": "launch", "program": "${workspaceFolder}/_layout/bin/Runner.Listener", - "args": ["run"], + "args": [ + "run" + ], "cwd": "${workspaceFolder}/src", "console": "integratedTerminal", "requireExactSource": false, - }, + }, { "name": "Configure", "type": "coreclr", "request": "launch", + "preLaunchTask": "create runner layout", "program": "${workspaceFolder}/_layout/bin/Runner.Listener", - "args": ["configure"], + "args": [ + "configure" + ], "cwd": "${workspaceFolder}/src", "console": "integratedTerminal", "requireExactSource": false, - }, + }, { "name": ".NET Core Attach", "type": "coreclr", @@ -54,4 +50,4 @@ "requireExactSource": false, }, ], -} +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e3f63cdf6..9cdcf7905 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,46 +2,32 @@ "version": "2.0.0", "tasks": [ { - "label": "build listener", - "command": "dotnet", - "type": "process", + "label": "create runner layout", + "detail": "Build and Copy all projects, scripts and external dependencies to _layout from src (run this the first time or after deleting _layout)", + "command": "./dev.sh", + "windows": { + "command": "dev.cmd" + }, "args": [ - "msbuild", - "-t:Build", - "-p:PackageRuntime=\"osx-x64\"", - "-p:BUILDCONFIG=\"Debug\"", - "-p:RunnerVersion=\"2.278.0\"", - "./dir.proj", + "layout" ], "options": { - "cwd": "${workspaceFolder}/src" + "cwd": "${workspaceFolder}/src" }, - "problemMatcher": "$msCompile", - }, { - "label": "deploy to _layout", - "detail": "Build and Deploy all projects, scripts and external dependencies to _layout from src (run this the first time or after deleting _layout)", + "label": "build runner layout", + "detail": "Build and Copy all projects to _layout from src (run this on code change)", "command": "./dev.sh", "windows": { "command": "dev.cmd" }, - "args": ["layout"], + "args": [ + "build" + ], "options": { - "cwd": "${workspaceFolder}/src" - }, - }, - { - "label": "build to _layout", - "detail": "Build and Deploy all projects to _layout from src (run this on code change)", - "command": "./dev.sh", - "windows": { - "command": "dev.cmd" - }, - "args": ["build"], - "options": { - "cwd": "${workspaceFolder}/src" + "cwd": "${workspaceFolder}/src" }, } ], -} +} \ No newline at end of file