File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -65,20 +65,21 @@ let codeActionsFromDiagnostics: codeActions.filesCodeActions = {};
65
65
// will be properly defined later depending on the mode (stdio/node-rpc)
66
66
let send : ( msg : p . Message ) => void = ( _ ) => { } ;
67
67
68
+ let getBinaryPath = ( projectRootPath : p . DocumentUri ) =>
69
+ extensionConfiguration . binaryPath === null
70
+ ? path . join ( projectRootPath , c . nodeModulesBinDir )
71
+ : extensionConfiguration . binaryPath ;
72
+
68
73
let findRescriptBinary = ( projectRootPath : p . DocumentUri ) =>
69
74
extensionConfiguration . binaryPath === null
70
- ? utils . findBuildBinaryFromProjectRoot ( projectRootPath )
75
+ ? utils . findRescriptBinaryFromProjectRoot ( projectRootPath )
71
76
: utils . findBuildBinaryFromConfig ( extensionConfiguration . binaryPath ) ;
72
77
73
78
let findBscBinary = ( filePath : p . DocumentUri ) =>
74
79
extensionConfiguration . binaryPath === null
75
80
? utils . findBscBinaryFromProjectRoot ( filePath )
76
81
: utils . findBscBinaryFromConfig ( extensionConfiguration . binaryPath ) ;
77
82
78
- let getBinaryPath = ( projectRootPath : p . DocumentUri ) =>
79
- extensionConfiguration . binaryPath === null
80
- ? path . join ( projectRootPath , c . nodeModulesBinDir )
81
- : extensionConfiguration . binaryPath ;
82
83
83
84
interface CreateInterfaceRequestParams {
84
85
uri : string ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export let findBuildBinaryFromConfig = (
79
79
) =>
80
80
findBuildBinaryBase ( path . join ( pathToBinaryDirFromConfig , c . rescriptBinName ) ) ;
81
81
82
- export let findBuildBinaryFromProjectRoot = ( projectRootPath : p . DocumentUri ) =>
82
+ export let findRescriptBinaryFromProjectRoot = ( projectRootPath : p . DocumentUri ) =>
83
83
findBuildBinaryBase ( path . join ( projectRootPath , c . rescriptNodePartialPath ) ) ;
84
84
85
85
type execResult =
You can’t perform that action at this time.
0 commit comments