Respect the user-provided label when creating task

This commit is contained in:
Igor Matuszewski 2019-03-18 21:04:33 +01:00
parent afe9cea640
commit 21b73f9844

View file

@ -37,7 +37,7 @@ export function createTask(spec: Runnable): vscode.Task {
const TASK_SOURCE = 'Rust';
const definition: CargoTaskDefinition = {
type: 'cargo',
label: 'cargo',
label: spec.label,
command: spec.bin,
args: spec.args,
env: spec.env