@@ -141,7 +141,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
141141 // because otherwise the diagnostics info we'll display might be stale
142142 let bsbLockPath = path . join ( projectRootPath , c . bsbLock ) ;
143143 if ( firstOpenFileOfProject && ! fs . existsSync ( bsbLockPath ) ) {
144- let bsbPath = path . join ( projectRootPath , c . bsbPartialPath ) ;
144+ let bsbPath = path . join ( projectRootPath , c . bsbNodePartialPath ) ;
145145 // TODO: sometime stale .bsb.lock dangling. bsb -w knows .bsb.lock is
146146 // stale. Use that logic
147147 // TODO: close watcher when lang-server shuts down
@@ -426,7 +426,7 @@ process.on("message", (msg: m.Message) => {
426426 process . send ! ( response ) ;
427427 } else {
428428 let bscExists = false ;
429- let bscPath = path . join ( projectRootPath , c . bscPartialPath ) ;
429+ let bscPath = path . join ( projectRootPath , c . bscExePartialPath ) ;
430430 bscExists = fs . existsSync ( bscPath ) ;
431431 if ( ! bscExists ) {
432432 // In certain cases the native bsc binaries might be put in an unknown location
@@ -510,7 +510,7 @@ process.on("message", (msg: m.Message) => {
510510 ) {
511511 let msg_ = msg . result as clientSentBuildAction ;
512512 let projectRootPath = msg_ . projectRootPath ;
513- let bsbPath = path . join ( projectRootPath , c . bsbPartialPath ) ;
513+ let bsbPath = path . join ( projectRootPath , c . bsbNodePartialPath ) ;
514514 // TODO: sometime stale .bsb.lock dangling
515515 // TODO: close watcher when lang-server shuts down
516516 if ( fs . existsSync ( bsbPath ) ) {
0 commit comments