about summary refs log tree commit diff
path: root/editors/code/src/run.ts
diff options
context:
space:
mode:
authorSahandevs <sahandevs@gmail.com>2021-02-07 22:06:16 +0330
committerSahandevs <sahandevs@gmail.com>2021-02-07 22:06:16 +0330
commit2f82a84d2a06e24296bdbc4e8f50131539d5a749 (patch)
tree302b1d5a48f84d1b41ff9d0296597fc701bd6558 /editors/code/src/run.ts
parent3a0234d60f924cdec4a3fa2fccfe7ed85567f0bc (diff)
downloadrust-2f82a84d2a06e24296bdbc4e8f50131539d5a749.tar.gz
rust-2f82a84d2a06e24296bdbc4e8f50131539d5a749.zip
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 4f0d2884b03..331f85cd3cb 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
         overrideCargo: runnable.args.overrideCargo,
     };
 
-    const target = vscode.workspace.workspaceFolders[0]; // safe, see main activate()
+    // 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(target, definition, runnable.label, args, config.cargoRunner, true);
     cargoTask.presentationOptions.clear = true;