Skip to content
Snippets Groups Projects
Commit 2a675dfe authored by Hampölz, Rene's avatar Hampölz, Rene
Browse files

refactor: Improve task labels

parent dd5da393
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Update", "label": "Update OOP1 Project",
"type": "shell", "type": "shell",
"command": "./update.sh", "command": "./update.sh",
"options": { "options": {
...@@ -106,7 +106,20 @@ ...@@ -106,7 +106,20 @@
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "Run Tests", "label": "Build OOP1 Project",
"type": "shell",
"command": "mkdir -p build && cd build && cmake .. && cmake --build . --parallel",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run OOP1 Tests",
"type": "shell", "type": "shell",
"command": "./runTests.sh", "command": "./runTests.sh",
"args": ["${input:assignment}"], "args": ["${input:assignment}"],
...@@ -119,19 +132,6 @@ ...@@ -119,19 +132,6 @@
"clear": true "clear": true
}, },
"problemMatcher": [] "problemMatcher": []
},
{
"label": "C/C++: Clang build active file",
"type": "shell",
"command": "mkdir -p build && cd build && cmake .. && cmake --build . --parallel",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
} }
], ],
"inputs": [ "inputs": [
...@@ -148,24 +148,24 @@ ...@@ -148,24 +148,24 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "C/C++: Debug (LLDB)", "name": "Debug OOP1 Project (LLDB)",
"type": "lldb", "type": "lldb",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/build/imhotep_server", "program": "${workspaceFolder}/build/imhotep_server",
"args": ["${input:pickPlayerCount}", "${input:pickRoundCount}"], "args": ["${input:pickPlayerCount}", "${input:pickRoundCount}"],
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/.devcontainer/.env", "envFile": "${workspaceFolder}/.devcontainer/.env",
"preLaunchTask": "C/C++: Clang build active file" "preLaunchTask": "Build OOP1 Project"
}, },
{ {
"name": "C/C++: Debug (GDB/LLDB)", "name": "Debug OOP1 Project (GDB/LLDB)",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/build/imhotep_server", "program": "${workspaceFolder}/build/imhotep_server",
"args": ["${input:pickPlayerCount}", "${input:pickRoundCount}"], "args": ["${input:pickPlayerCount}", "${input:pickRoundCount}"],
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/.devcontainer/.env", "envFile": "${workspaceFolder}/.devcontainer/.env",
"preLaunchTask": "C/C++: Clang build active file" "preLaunchTask": "Build OOP1 Project"
} }
], ],
"inputs": [ "inputs": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment