Fixes #99: Disambiguates VSCode Tasks
Using the equivalent command line as the task name caused some confusion. Users were under the impression that they could use any valid cargo command as a preLaunchTask in the launch configurations.
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -12,7 +12,7 @@
|
|||||||
"name": "Debug (QEMU)",
|
"name": "Debug (QEMU)",
|
||||||
"servertype": "qemu",
|
"servertype": "qemu",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"preLaunchTask": "cargo build",
|
"preLaunchTask": "Cargo Build (debug)",
|
||||||
"runToMain": true,
|
"runToMain": true,
|
||||||
"executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
|
"executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
|
||||||
/* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
|
/* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"name": "Debug (OpenOCD)",
|
"name": "Debug (OpenOCD)",
|
||||||
"servertype": "openocd",
|
"servertype": "openocd",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"preLaunchTask": "cargo build",
|
"preLaunchTask": "Cargo Build (debug)",
|
||||||
"runToMain": true,
|
"runToMain": true,
|
||||||
"executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
|
"executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
|
||||||
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
||||||
|
|||||||
10
.vscode/tasks.json
vendored
10
.vscode/tasks.json
vendored
@@ -9,7 +9,7 @@
|
|||||||
* but we need to provide a label for it,
|
* but we need to provide a label for it,
|
||||||
* so we can invoke it from the debug launcher.
|
* so we can invoke it from the debug launcher.
|
||||||
*/
|
*/
|
||||||
"label": "cargo build",
|
"label": "Cargo Build (debug)",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["build"],
|
"args": ["build"],
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "cargo build --release",
|
"label": "Cargo Build (release)",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["build", "--release"],
|
"args": ["build", "--release"],
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "cargo build --examples",
|
"label": "Cargo Build Examples (debug)",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["build","--examples"],
|
"args": ["build","--examples"],
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "cargo build --examples --release",
|
"label": "Cargo Build Examples (release)",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["build","--examples", "--release"],
|
"args": ["build","--examples", "--release"],
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "cargo clean",
|
"label": "Cargo Clean",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["clean"],
|
"args": ["clean"],
|
||||||
|
|||||||
Reference in New Issue
Block a user