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 = (
79
79
// If ReScript < 12.0.0-alpha.13, then we want `{project_root}/node_modules/rescript/{c.platformDir}/{binary}`.
80
80
// Otherwise, we want to dynamically import `{project_root}/node_modules/rescript` and from `binPaths` get the relevant binary.
81
81
// 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 (
83
83
projectRootPath : p . DocumentUri | null ,
84
84
binary : "bsc.exe" | "rescript-editor-analysis.exe" | "rescript"
85
85
) => {
@@ -135,13 +135,13 @@ let findBinaryAsync = async (
135
135
}
136
136
137
137
export let findRescriptBinary = ( projectRootPath : p . DocumentUri | null ) =>
138
- findBinaryAsync ( projectRootPath , "rescript" ) ;
138
+ findBinary ( projectRootPath , "rescript" ) ;
139
139
140
140
export let findBscExeBinary = ( projectRootPath : p . DocumentUri | null ) =>
141
- findBinaryAsync ( projectRootPath , "bsc.exe" ) ;
141
+ findBinary ( projectRootPath , "bsc.exe" ) ;
142
142
143
143
export let findEditorAnalysisBinary = ( projectRootPath : p . DocumentUri | null ) =>
144
- findBinaryAsync ( projectRootPath , "rescript-editor-analysis.exe" ) ;
144
+ findBinary ( projectRootPath , "rescript-editor-analysis.exe" ) ;
145
145
146
146
type execResult =
147
147
| {
You can’t perform that action at this time.
0 commit comments