]> git.lizzy.rs Git - rust.git/commitdiff
Respect the user-provided label when creating task
authorIgor Matuszewski <Xanewok@gmail.com>
Mon, 18 Mar 2019 20:04:33 +0000 (21:04 +0100)
committerIgor Matuszewski <Xanewok@gmail.com>
Mon, 18 Mar 2019 20:04:41 +0000 (21:04 +0100)
editors/code/src/commands/runnables.ts

index 74d664034c86532ec7d6a72bc9b553691ba3a825..c6d23a185382255e0f5f13409ff643a86467fc3f 100644 (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