Skip to content

Commit dd42156

Browse files
committed
Comment on subprocess exit
1 parent 003c576 commit dd42156

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/src/server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,17 @@ process.on("message", (msg: m.Message) => {
496496
let projectRootPath = msg_.projectRootPath;
497497
let bsbPath = path.join(projectRootPath, c.bsbNodePartialPath);
498498
// 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
500502
if (fs.existsSync(bsbPath)) {
501503
let bsbProcess = utils.runBsbWatcherUsingValidBsbPath(
502504
bsbPath,
503505
projectRootPath
504506
);
505507
let root = projectsFiles.get(projectRootPath)!;
506508
root.bsbWatcherByEditor = bsbProcess;
507-
bsbProcess.on("message", (a) => console.log("wtf======", a));
509+
// bsbProcess.on("message", (a) => console.log(a));
508510
}
509511
}
510512
}

0 commit comments

Comments
 (0)