File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -496,15 +496,17 @@ process.on("message", (msg: m.Message) => {
496
496
let projectRootPath = msg_ . projectRootPath ;
497
497
let bsbPath = path . join ( projectRootPath , c . bsbNodePartialPath ) ;
498
498
// TODO: sometime stale .bsb.lock dangling
499
- // TODO: close watcher when lang-server shuts down
499
+ // TODO: close watcher when lang-server shuts down. However, by Node's
500
+ // default, these subprocesses are automatically killed when this
501
+ // language-server process exits
500
502
if ( fs . existsSync ( bsbPath ) ) {
501
503
let bsbProcess = utils . runBsbWatcherUsingValidBsbPath (
502
504
bsbPath ,
503
505
projectRootPath
504
506
) ;
505
507
let root = projectsFiles . get ( projectRootPath ) ! ;
506
508
root . bsbWatcherByEditor = bsbProcess ;
507
- bsbProcess . on ( "message" , ( a ) => console . log ( "wtf======" , a ) ) ;
509
+ // bsbProcess.on("message", (a) => console.log(a));
508
510
}
509
511
}
510
512
}
You can’t perform that action at this time.
0 commit comments