diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 576b74009..2a3fff2ed 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -25,39 +25,51 @@
"tasks": [
{
"label": "build: odr (library)",
- "type": "shell",
- "command": "cmake --build cmake-build-relwithdebinfo --target odr",
+ "type": "process",
+ "command": "cmake",
"group": "build",
- "problemMatcher": ["$gcc"]
+ "problemMatcher": ["$gcc"],
+ "args": ["--build", "cmake-build-relwithdebinfo", "--target", "odr"]
},
{
"label": "build: odr_test",
- "type": "shell",
- "command": "cmake --build cmake-build-relwithdebinfo --target odr_test",
+ "type": "process",
+ "command": "cmake",
"group": {
"kind": "build",
"isDefault": true
},
- "problemMatcher": ["$gcc"]
+ "problemMatcher": ["$gcc"],
+ "args": ["--build", "cmake-build-relwithdebinfo", "--target", "odr_test"]
},
{
"label": "build: translate",
- "type": "shell",
- "command": "cmake --build cmake-build-relwithdebinfo --target translate",
+ "type": "process",
+ "command": "cmake",
"group": "build",
- "problemMatcher": ["$gcc"]
+ "problemMatcher": ["$gcc"],
+ "args": ["--build", "cmake-build-relwithdebinfo", "--target", "translate"]
},
{
"label": "build: all CLI tools",
- "type": "shell",
- "command": "cmake --build cmake-build-relwithdebinfo --target translate back_translate meta server",
+ "type": "process",
+ "command": "cmake",
"group": "build",
- "problemMatcher": ["$gcc"]
+ "problemMatcher": ["$gcc"],
+ "args": [
+ "--build",
+ "cmake-build-relwithdebinfo",
+ "--target",
+ "translate",
+ "back_translate",
+ "meta",
+ "server"
+ ]
},
{
"label": "test: run odr_test (filtered)",
- "type": "shell",
- "command": "${workspaceFolder}/scripts/run-with-env.sh ./test/odr_test --gtest_filter='${input:gtestFilter}'",
+ "type": "process",
+ "command": "${workspaceFolder}/scripts/run-with-env.sh",
"options": {
"cwd": "${workspaceFolder}/cmake-build-relwithdebinfo"
},
@@ -66,26 +78,32 @@
"kind": "test",
"isDefault": true
},
- "problemMatcher": []
+ "problemMatcher": [],
+ "args": ["./test/odr_test", "--gtest_filter=${input:gtestFilter}"]
},
{
"label": "cli: translate