aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/run.ts
diff options
context:
space:
mode:
authorSahandevs <[email protected]>2021-02-07 18:36:16 +0000
committerSahandevs <[email protected]>2021-02-07 18:36:16 +0000
commit2f82a84d2a06e24296bdbc4e8f50131539d5a749 (patch)
tree302b1d5a48f84d1b41ff9d0296597fc701bd6558 /editors/code/src/run.ts
parent3a0234d60f924cdec4a3fa2fccfe7ed85567f0bc (diff)
fix errors
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 4f0d2884b..331f85cd3 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -146,7 +146,8 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
146 overrideCargo: runnable.args.overrideCargo, 146 overrideCargo: runnable.args.overrideCargo,
147 }; 147 };
148 148
149 const target = vscode.workspace.workspaceFolders[0]; // safe, see main activate() 149 // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
150 const target = vscode.workspace.workspaceFolders![0]; // safe, see main activate()
150 const cargoTask = await tasks.buildCargoTask(target, definition, runnable.label, args, config.cargoRunner, true); 151 const cargoTask = await tasks.buildCargoTask(target, definition, runnable.label, args, config.cargoRunner, true);
151 cargoTask.presentationOptions.clear = true; 152 cargoTask.presentationOptions.clear = true;
152 153