From 7cf5f7db093cd563847e379c36b6fc090e50ba42 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 31 Aug 2019 13:43:46 -0700 Subject: [PATCH] Updated to task system version 2.0 --- .vscode/tasks.json | 57 ++++++++++++++++++++++++++++++---------------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f83e3a6..f63d118 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,32 +1,49 @@ { - "version": "0.1.0", - "showOutput": "always", - - "tasks": [ - + "version": "2.0.0", + "presentation": { + "reveal": "always" + }, + "tasks": [ // Run test environment { - "taskName": "Run", - "options": { "cwd": "${workspaceRoot}" }, + "label": "Run", + "options": { + "cwd": "${workspaceRoot}" + }, "command": "cargo", - "args": ["run", "--", "-c", "./TestConfigWindows.toml", "-d", "test/db.sqlite", "-w", "../polaris-web"] + "args": [ + "run", + "--", + "-c", + "./TestConfigWindows.toml", + "-d", + "test/db.sqlite", + "-w", + "../polaris-web" + ] }, - // Run unit tests - { - "isTestCommand": true, - "taskName": "Test", - "options": { "cwd": "${workspaceRoot}" }, + { + "group": "test", + "label": "Test", + "options": { + "cwd": "${workspaceRoot}" + }, "command": "cargo", - "args": ["test"] - }, - + "args": [ + "test" + ] + }, // Compile { - "taskName": "Compile", - "options": { "cwd": "${workspaceRoot}" }, + "label": "Compile", + "options": { + "cwd": "${workspaceRoot}" + }, "command": "cargo", - "args": ["check"] + "args": [ + "check" + ] } - ] + ] } \ No newline at end of file