diff options
Diffstat (limited to 'editors/code/src/run.ts')
-rw-r--r-- | editors/code/src/run.ts | 3 |
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 | ||