From fc402026fb3701f1fad70afc4d993d8cdb3652ec Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sun, 8 Aug 2021 12:33:46 -0500 Subject: [PATCH] improvement(vscode): Improve tasks Changed the build task to no longer set isDefault: true. This lets you set your own default build task from a code workspace. Also replaced "cd app" in each command by setting the working directory for the task. --- .vscode/tasks.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 034ef557..03b3525c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,11 +6,11 @@ { "label": "Build", "type": "shell", - "command": "cd app && west build", - "group": { - "kind": "build", - "isDefault": true + "command": "west build", + "options": { + "cwd": "${workspaceFolder}/app" }, + "group": "build", "problemMatcher": [ { "base": "$gcc", @@ -21,13 +21,19 @@ { "label": "Flash", "type": "shell", - "command": "cd app && west flash", + "command": "west flash", + "options": { + "cwd": "${workspaceFolder}/app" + }, "group": "test" }, { "label": "Debug", "type": "shell", - "command": "cd app && west debug", + "command": "west debug", + "options": { + "cwd": "${workspaceFolder}/app" + }, "group": "test" } ]