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.
This commit is contained in:
parent
8df00aeac4
commit
fc402026fb
1 changed files with 12 additions and 6 deletions
18
.vscode/tasks.json
vendored
18
.vscode/tasks.json
vendored
|
@ -6,11 +6,11 @@
|
||||||
{
|
{
|
||||||
"label": "Build",
|
"label": "Build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd app && west build",
|
"command": "west build",
|
||||||
"group": {
|
"options": {
|
||||||
"kind": "build",
|
"cwd": "${workspaceFolder}/app"
|
||||||
"isDefault": true
|
|
||||||
},
|
},
|
||||||
|
"group": "build",
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
{
|
{
|
||||||
"base": "$gcc",
|
"base": "$gcc",
|
||||||
|
@ -21,13 +21,19 @@
|
||||||
{
|
{
|
||||||
"label": "Flash",
|
"label": "Flash",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd app && west flash",
|
"command": "west flash",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/app"
|
||||||
|
},
|
||||||
"group": "test"
|
"group": "test"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Debug",
|
"label": "Debug",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd app && west debug",
|
"command": "west debug",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/app"
|
||||||
|
},
|
||||||
"group": "test"
|
"group": "test"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue