mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
editor/code: Enable noUncheckedIndexedAccess
ts option
https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess
This commit is contained in:
parent
bb35d8fa8e
commit
72a3883a71
14 changed files with 124 additions and 52 deletions
|
@ -2,6 +2,7 @@ import * as vscode from "vscode";
|
|||
import * as toolchain from "./toolchain";
|
||||
import { Config } from "./config";
|
||||
import { log } from "./util";
|
||||
import { unwrapUndefinable } from "./undefinable";
|
||||
|
||||
// This ends up as the `type` key in tasks.json. RLS also uses `cargo` and
|
||||
// our configuration should be compatible with it so use the same key.
|
||||
|
@ -120,7 +121,8 @@ export async function buildCargoTask(
|
|||
|
||||
const fullCommand = [...cargoCommand, ...args];
|
||||
|
||||
exec = new vscode.ProcessExecution(fullCommand[0], fullCommand.slice(1), definition);
|
||||
const processName = unwrapUndefinable(fullCommand[0]);
|
||||
exec = new vscode.ProcessExecution(processName, fullCommand.slice(1), definition);
|
||||
}
|
||||
|
||||
return new vscode.Task(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue