File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
137137export let findRescriptBinary = ( projectRootPath : p . DocumentUri | null ) =>
138- findBinaryAsync ( projectRootPath , "rescript" ) ;
138+ findBinary ( projectRootPath , "rescript" ) ;
139139
140140export let findBscExeBinary = ( projectRootPath : p . DocumentUri | null ) =>
141- findBinaryAsync ( projectRootPath , "bsc.exe" ) ;
141+ findBinary ( projectRootPath , "bsc.exe" ) ;
142142
143143export let findEditorAnalysisBinary = ( projectRootPath : p . DocumentUri | null ) =>
144- findBinaryAsync ( projectRootPath , "rescript-editor-analysis.exe" ) ;
144+ findBinary ( projectRootPath , "rescript-editor-analysis.exe" ) ;
145145
146146type execResult =
147147 | {
You can’t perform that action at this time.
0 commit comments