aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-06-24 09:50:14 +0100
committervsrs <[email protected]>2020-06-24 10:30:41 +0100
commit2791f37a045962535c7b8691a942a7e739d75cad (patch)
treed5bf7e9b39de44f1c872756b5e577281f91ff78c /editors/code/src
parent647b126da52b3dec1268df13b08c8a14744feb06 (diff)
Fix ts lints
Diffstat (limited to 'editors/code/src')
-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(