mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
editor/code: Re-apply code format
This commit is contained in:
parent
9d06aa55b4
commit
f7823f3106
17 changed files with 180 additions and 175 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue