mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Fix ts lints
This commit is contained in:
parent
647b126da5
commit
2791f37a04
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ export async function buildCargoTask(
|
||||||
const customExec = await vscode.commands.executeCommand(runnerCommand, runnerArgs);
|
const customExec = await vscode.commands.executeCommand(runnerCommand, runnerArgs);
|
||||||
if (customExec) {
|
if (customExec) {
|
||||||
if (customExec instanceof vscode.ShellExecution) {
|
if (customExec instanceof vscode.ShellExecution) {
|
||||||
exec = customExec as vscode.ShellExecution;
|
exec = customExec;
|
||||||
} else {
|
} else {
|
||||||
log.debug("Invalid cargo ShellExecution", customExec);
|
log.debug("Invalid cargo ShellExecution", customExec);
|
||||||
throw "Invalid cargo ShellExecution.";
|
throw "Invalid cargo ShellExecution.";
|
||||||
|
@ -98,7 +98,7 @@ export async function buildCargoTask(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!exec) {
|
if (!exec) {
|
||||||
exec = new vscode.ShellExecution(toolchain.cargoPath(), args, definition)
|
exec = new vscode.ShellExecution(toolchain.cargoPath(), args, definition);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new vscode.Task(
|
return new vscode.Task(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue