Skip to content

Commit

Permalink
Add vscode build task
Browse files Browse the repository at this point in the history
  • Loading branch information
akosnad committed Oct 2, 2021
1 parent 50308fe commit 792f527
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
"request": "launch",
"program": "${workspaceFolder}/target/debug/pc",
"args": [],
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"preLaunchTask": "build"
},
{
"name": "(Windows) Launch",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}\\target\\debug\\pc.exe",
"args": [],
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"preLaunchTask": "build"
}
]
}
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "cargo build",
"type": "shell",
"args": [],
"problemMatcher": [
"$rustc"
],
"presentation": {
"reveal": "silent"
},
"group": "build"
}
]
}

0 comments on commit 792f527

Please sign in to comment.