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 = {};
6565// will be properly defined later depending on the mode (stdio/node-rpc)
6666let send : ( msg : p . Message ) => void = ( _ ) => { } ;
6767
68+ let getBinaryPath = ( projectRootPath : p . DocumentUri ) =>
69+ extensionConfiguration . binaryPath === null
70+ ? path . join ( projectRootPath , c . nodeModulesBinDir )
71+ : extensionConfiguration . binaryPath ;
72+
6873let findRescriptBinary = ( projectRootPath : p . DocumentUri ) =>
6974 extensionConfiguration . binaryPath === null
70- ? utils . findBuildBinaryFromProjectRoot ( projectRootPath )
75+ ? utils . findRescriptBinaryFromProjectRoot ( projectRootPath )
7176 : utils . findBuildBinaryFromConfig ( extensionConfiguration . binaryPath ) ;
7277
7378let findBscBinary = ( filePath : p . DocumentUri ) =>
7479 extensionConfiguration . binaryPath === null
7580 ? utils . findBscBinaryFromProjectRoot ( filePath )
7681 : utils . findBscBinaryFromConfig ( extensionConfiguration . binaryPath ) ;
7782
78- let getBinaryPath = ( projectRootPath : p . DocumentUri ) =>
79- extensionConfiguration . binaryPath === null
80- ? path . join ( projectRootPath , c . nodeModulesBinDir )
81- : extensionConfiguration . binaryPath ;
8283
8384interface CreateInterfaceRequestParams {
8485 uri : string ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export let findBuildBinaryFromConfig = (
7979) =>
8080 findBuildBinaryBase ( path . join ( pathToBinaryDirFromConfig , c . rescriptBinName ) ) ;
8181
82- export let findBuildBinaryFromProjectRoot = ( projectRootPath : p . DocumentUri ) =>
82+ export let findRescriptBinaryFromProjectRoot = ( projectRootPath : p . DocumentUri ) =>
8383 findBuildBinaryBase ( path . join ( projectRootPath , c . rescriptNodePartialPath ) ) ;
8484
8585type execResult =
You can’t perform that action at this time.
0 commit comments