Skip to content

Commit b3b26bf

Browse files
committed
s/findBinaryAsync/findBinary
1 parent 628dc75 commit b3b26bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export let findProjectRootOfFile = (
7979
// If ReScript < 12.0.0-alpha.13, then we want `{project_root}/node_modules/rescript/{c.platformDir}/{binary}`.
8080
// Otherwise, we want to dynamically import `{project_root}/node_modules/rescript` and from `binPaths` get the relevant binary.
8181
// We won't know which version is in the project root until we read and parse `{project_root}/node_modules/rescript/package.json`
82-
let findBinaryAsync = async (
82+
let findBinary = async (
8383
projectRootPath: p.DocumentUri | null,
8484
binary: "bsc.exe" | "rescript-editor-analysis.exe" | "rescript"
8585
) => {
@@ -135,13 +135,13 @@ let findBinaryAsync = async (
135135
}
136136

137137
export let findRescriptBinary = (projectRootPath: p.DocumentUri | null) =>
138-
findBinaryAsync(projectRootPath, "rescript");
138+
findBinary(projectRootPath, "rescript");
139139

140140
export let findBscExeBinary = (projectRootPath: p.DocumentUri | null) =>
141-
findBinaryAsync(projectRootPath, "bsc.exe");
141+
findBinary(projectRootPath, "bsc.exe");
142142

143143
export let findEditorAnalysisBinary = (projectRootPath: p.DocumentUri | null) =>
144-
findBinaryAsync(projectRootPath, "rescript-editor-analysis.exe");
144+
findBinary(projectRootPath, "rescript-editor-analysis.exe");
145145

146146
type execResult =
147147
| {

0 commit comments

Comments
 (0)