mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix errors
This commit is contained in:
parent
3a0234d60f
commit
2f82a84d2a
4 changed files with 11 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue