mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Tidy up vscode extension a bit
This commit is contained in:
parent
f9bb5476c3
commit
ff07caa9de
16 changed files with 143 additions and 171 deletions
|
@ -3,9 +3,7 @@ import * as os from "os";
|
|||
import * as path from "path";
|
||||
import * as readline from "readline";
|
||||
import * as vscode from "vscode";
|
||||
import { execute, log, memoizeAsync } from "./util";
|
||||
import { unwrapNullable } from "./nullable";
|
||||
import { unwrapUndefinable } from "./undefinable";
|
||||
import { execute, log, memoizeAsync, unwrapNullable, unwrapUndefinable } from "./util";
|
||||
|
||||
interface CompilationArtifact {
|
||||
fileName: string;
|
||||
|
@ -157,7 +155,7 @@ export function cargoPath(): Promise<string> {
|
|||
}
|
||||
|
||||
/** Mirrors `toolchain::get_path_for_executable()` implementation */
|
||||
export const getPathForExecutable = memoizeAsync(
|
||||
const getPathForExecutable = memoizeAsync(
|
||||
// We apply caching to decrease file-system interactions
|
||||
async (executableName: "cargo" | "rustc" | "rustup"): Promise<string> => {
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue