aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/tasks.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts
index 20ddb3a5d..14abbd5b7 100644
--- a/editors/code/src/tasks.ts
+++ b/editors/code/src/tasks.ts
@@ -83,7 +83,7 @@ export async function buildCargoTask(
83 const customExec = await vscode.commands.executeCommand(runnerCommand, runnerArgs); 83 const customExec = await vscode.commands.executeCommand(runnerCommand, runnerArgs);
84 if (customExec) { 84 if (customExec) {
85 if (customExec instanceof vscode.ShellExecution) { 85 if (customExec instanceof vscode.ShellExecution) {
86 exec = customExec as vscode.ShellExecution; 86 exec = customExec;
87 } else { 87 } else {
88 log.debug("Invalid cargo ShellExecution", customExec); 88 log.debug("Invalid cargo ShellExecution", customExec);
89 throw "Invalid cargo ShellExecution."; 89 throw "Invalid cargo ShellExecution.";
@@ -98,7 +98,7 @@ export async function buildCargoTask(
98 } 98 }
99 99
100 if (!exec) { 100 if (!exec) {
101 exec = new vscode.ShellExecution(toolchain.cargoPath(), args, definition) 101 exec = new vscode.ShellExecution(toolchain.cargoPath(), args, definition);
102 } 102 }
103 103
104 return new vscode.Task( 104 return new vscode.Task(