提交 b6d0e47a 编写于 作者: B Benjamin Pasero

watcher - do not run extra glob matching

上级 7a803e5a
......@@ -113,7 +113,8 @@ export class ChokidarWatcherService implements IWatcherService {
};
// if there's only one request, use the built-in ignore-filterering
if (requests.length === 1) {
const isSingleFolder = requests.length === 1;
if (isSingleFolder) {
watcherOpts.ignored = requests[0].ignored;
}
......@@ -194,8 +195,12 @@ export class ChokidarWatcherService implements IWatcherService {
return;
}
if (isIgnored(path, watcher.requests)) {
return;
// if there's more than one request we need to do
// extra filtering due to potentially overlapping roots
if (!isSingleFolder) {
if (isIgnored(path, watcher.requests)) {
return;
}
}
let event = { type: eventType, path };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册