Skip to content

Commit 7b418a1

Browse files
committed
fix comments
1 parent d9c5d7b commit 7b418a1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

server/src/server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,9 @@ async function onMessage(msg: p.Message) {
15261526
(projectRootPath) => {
15271527
return [
15281528
{
1529-
// Watch compiler log
1529+
// Only watch the root compiler log for each workspace folder.
1530+
// In monorepos, `**/lib/bs/.compiler.log` matches every package and dependency,
1531+
// causing a burst of events per save.
15301532
globPattern: {
15311533
baseUri: utils.pathToURI(projectRootPath),
15321534
pattern: c.compilerLogPartialPath,
@@ -1535,7 +1537,7 @@ async function onMessage(msg: p.Message) {
15351537
p.WatchKind.Change | p.WatchKind.Create | p.WatchKind.Delete,
15361538
},
15371539
{
1538-
// Watch build artifacts (absolute path converted to relative)
1540+
// Watch build artifacts
15391541
globPattern: {
15401542
baseUri: utils.pathToURI(projectRootPath),
15411543
pattern: path.join(c.compilerDirPartialPath, "**/*.{cmi,cmt}"),

0 commit comments

Comments
 (0)