File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}" ) ,
You can’t perform that action at this time.
0 commit comments