Skip to content

Commit

Permalink
Fix ignore minimatch to include folders starting with dot
Browse files Browse the repository at this point in the history
for example during npm install there is a temp folder called .staging and we don't want to listen to those files

Signed-off-by: Amiram Wingarten <amiram.wingarten@sap.com>
  • Loading branch information
amiramw committed Jun 24, 2020
1 parent 9397130 commit 3eb0678
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class NsfwFileSystemWatcherServer implements FileSystemWatcherServer {
}
}));
this.watcherOptions.set(watcherId, {
ignored: options.ignored.map(pattern => new Minimatch(pattern))
ignored: options.ignored.map(pattern => new Minimatch(pattern, { dot: true }))
});
}

Expand Down

0 comments on commit 3eb0678

Please sign in to comment.