Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/run.ts')
-rw-r--r--editors/code/src/run.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index fc3f1acce5..64a8a945f7 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -113,7 +113,7 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
const args = createArgs(runnable);
- const definition: tasks.CargoTaskDefinition = {
+ const definition: tasks.RustTargetDefinition = {
type: tasks.TASK_TYPE,
command: args[0], // run, test, etc...
args: args.slice(1),
@@ -124,7 +124,7 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const target = vscode.workspace.workspaceFolders![0]; // safe, see main activate()
- const cargoTask = await tasks.buildCargoTask(
+ const task = await tasks.buildRustTask(
target,
definition,
runnable.label,
@@ -134,12 +134,12 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
true,
);
- cargoTask.presentationOptions.clear = true;
+ task.presentationOptions.clear = true;
// Sadly, this doesn't prevent focus stealing if the terminal is currently
// hidden, and will become revealed due to task execution.
- cargoTask.presentationOptions.focus = false;
+ task.presentationOptions.focus = false;
- return cargoTask;
+ return task;
}
export function createArgs(runnable: ra.Runnable): string[] {