about summary refs log tree commit diff
path: root/editors/code/src/run.ts
diff options
context:
space:
mode:
authorvsrs <vit@conrlab.com>2020-06-19 12:42:26 +0300
committervsrs <vit@conrlab.com>2020-06-24 10:53:49 +0300
commit647b126da52b3dec1268df13b08c8a14744feb06 (patch)
treeece5a90984f04dd962f3283fe2fa67f55a463bdc /editors/code/src/run.ts
parenta43a9103bc9a8c1bf735d51c952bc3b9352a00c3 (diff)
downloadrust-647b126da52b3dec1268df13b08c8a14744feb06.tar.gz
rust-647b126da52b3dec1268df13b08c8a14744feb06.zip
Switch to ShellExecution instead of full Task
Diffstat (limited to 'editors/code/src/run.ts')
-rw-r--r--editors/code/src/run.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index 7ecdeeeaf7f..766b0511269 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -116,7 +116,8 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
         env: Object.assign({}, process.env as { [key: string]: string }, { "RUST_BACKTRACE": "short" }),
     };
 
-    const cargoTask = await tasks.buildCargoTask(definition, runnable.label, args, config.cargoRunner);
+    const target = vscode.workspace.workspaceFolders![0]; // safe, see main activate()
+    const cargoTask = await tasks.buildCargoTask(target, definition, runnable.label, args, config.cargoRunner, true);
     cargoTask.presentationOptions.clear = true;
 
     return cargoTask;