diff --git a/.vscode/launch.json b/.vscode/launch.json index 35b1ebd4..a194ed6d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,7 @@ "environment": [], "externalConsole": true, "MIMode": "gdb", - "preLaunchTask": "build", + "preLaunchTask": "Build example_app", "setupCommands": [ { "description": "Enable pretty-printing for gdb", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4f589ac8..9333bf76 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,43 +5,33 @@ "tasks": [ { "label": "Build example_app", - "identifier": "build", "type": "shell", + "options": { + "cwd": "${workspaceFolder}/build" + }, "problemMatcher": "$gcc", "group": { "kind": "build", "isDefault": true }, - "linux": { - "command": "cd ${workspaceFolder}/build && cmake --build ." - }, - "windows": { - "command": "cd ${workspaceFolder}/build; cmake --build ." - } + "command": "cmake --build ." }, { "label": "Configure example_app", "type": "shell", "problemMatcher": "$gcc", "group": "build", - "linux": { - "command": "cd ${workspaceFolder} && mkdir build && cd build && cmake .." - }, - "windows": { - "command": "cd ${workspaceFolder}; mkdir build; cd build; cmake .." - } + "command": "cd ${workspaceFolder}; mkdir build; cd build; cmake .." }, { "label": "Generate documentation", "type": "shell", "problemMatcher": [], "group": "none", - "linux": { - "command": "cd ${workspaceFolder}/build && cmake --build . --target lwipdocs" - }, - "windows": { - "command": "cd ${workspaceFolder}/build; cmake --build . --target lwipdocs" + "options": { + "cwd": "${workspaceFolder}/build" }, + "command": "cmake --build . --target lwipdocs" } ] }