From 792f527b6b4ca007c4d7aafe064ee340da27a251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20N=C3=A1dudvari?= Date: Sat, 2 Oct 2021 21:38:19 +0200 Subject: [PATCH] Add vscode build task --- .vscode/launch.json | 6 ++++-- .vscode/tasks.json | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json index a2590df..9731209 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,8 @@ "request": "launch", "program": "${workspaceFolder}/target/debug/pc", "args": [], - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", + "preLaunchTask": "build" }, { "name": "(Windows) Launch", @@ -18,7 +19,8 @@ "request": "launch", "program": "${workspaceFolder}\\target\\debug\\pc.exe", "args": [], - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", + "preLaunchTask": "build" } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..d416197 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,18 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "cargo build", + "type": "shell", + "args": [], + "problemMatcher": [ + "$rustc" + ], + "presentation": { + "reveal": "silent" + }, + "group": "build" + } + ] +} \ No newline at end of file