@@ -141,7 +141,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
141
141
// because otherwise the diagnostics info we'll display might be stale
142
142
let bsbLockPath = path . join ( projectRootPath , c . bsbLock ) ;
143
143
if ( firstOpenFileOfProject && ! fs . existsSync ( bsbLockPath ) ) {
144
- let bsbPath = path . join ( projectRootPath , c . bsbPartialPath ) ;
144
+ let bsbPath = path . join ( projectRootPath , c . bsbNodePartialPath ) ;
145
145
// TODO: sometime stale .bsb.lock dangling. bsb -w knows .bsb.lock is
146
146
// stale. Use that logic
147
147
// TODO: close watcher when lang-server shuts down
@@ -426,7 +426,7 @@ process.on("message", (msg: m.Message) => {
426
426
process . send ! ( response ) ;
427
427
} else {
428
428
let bscExists = false ;
429
- let bscPath = path . join ( projectRootPath , c . bscPartialPath ) ;
429
+ let bscPath = path . join ( projectRootPath , c . bscExePartialPath ) ;
430
430
bscExists = fs . existsSync ( bscPath ) ;
431
431
if ( ! bscExists ) {
432
432
// In certain cases the native bsc binaries might be put in an unknown location
@@ -510,7 +510,7 @@ process.on("message", (msg: m.Message) => {
510
510
) {
511
511
let msg_ = msg . result as clientSentBuildAction ;
512
512
let projectRootPath = msg_ . projectRootPath ;
513
- let bsbPath = path . join ( projectRootPath , c . bsbPartialPath ) ;
513
+ let bsbPath = path . join ( projectRootPath , c . bsbNodePartialPath ) ;
514
514
// TODO: sometime stale .bsb.lock dangling
515
515
// TODO: close watcher when lang-server shuts down
516
516
if ( fs . existsSync ( bsbPath ) ) {
0 commit comments