We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0167621 commit 58fc4cdCopy full SHA for 58fc4cd
server/src/utils.ts
@@ -42,10 +42,14 @@ export let findBinaryFromProjectRoot = (
42
projectRootPath: p.DocumentUri // This must be a directory and not a file!
43
): null | p.DocumentUri => {
44
let dir = path.dirname(projectRootPath);
45
- let bscNativeReScriptPath = path.join(projectRootPath, c.nodeModulesBinDir);
+ let bscNativeReScriptPath = path.join(
46
+ projectRootPath,
47
+ c.nodeModulesBinDir,
48
+ c.bscBinName
49
+ );
50
51
if (fs.existsSync(bscNativeReScriptPath)) {
- return bscNativeReScriptPath;
52
+ return path.dirname(bscNativeReScriptPath);
53
} else if (dir === projectRootPath) {
54
// reached the top
55
return null;
0 commit comments