editor/code: Re-apply code format

This commit is contained in:
Tetsuharu Ohzeki 2023-07-11 22:35:10 +09:00
parent 9d06aa55b4
commit f7823f3106
17 changed files with 180 additions and 175 deletions

View file

@ -23,7 +23,7 @@ export class Cargo {
constructor(
readonly rootFolder: string,
readonly output: vscode.OutputChannel,
readonly env: Record<string, string>
readonly env: Record<string, string>,
) {}
// Made public for testing purposes
@ -76,7 +76,7 @@ export class Cargo {
this.output.append(message.message.rendered);
}
},
(stderr) => this.output.append(stderr)
(stderr) => this.output.append(stderr),
);
} catch (err) {
this.output.show(true);
@ -102,7 +102,7 @@ export class Cargo {
private async runCargo(
cargoArgs: string[],
onStdoutJson: (obj: any) => void,
onStderrString: (data: string) => void
onStderrString: (data: string) => void,
): Promise<number> {
const path = await cargoPath();
return await new Promise((resolve, reject) => {
@ -172,7 +172,7 @@ export const getPathForExecutable = memoizeAsync(
if (await isFileAtUri(standardPath)) return standardPath.fsPath;
}
return executableName;
}
},
);
async function lookupInPath(exec: string): Promise<boolean> {