Fix incorrect manual watch root calculations.

Previously, if these were met:

* You have more than one file watcher, and
* One of the file watchers have unwatchable roots, and
* Some other file watcher can watch everything

You would get spurious "Cannot be watched" notifications
and manual watch roots from the system.
This commit is contained in:
Tom Lundell
2016-04-04 17:10:23 -04:00
parent 5130c34a3f
commit fa213634c1
@@ -184,9 +184,7 @@ public class FileWatcher {
@Override
public void notifyManualWatchRoots(@NotNull Collection<String> roots) {
if (!roots.isEmpty()) {
myManualWatchRoots.add(ContainerUtil.newHashSet(roots));
}
myManualWatchRoots.add(ContainerUtil.newHashSet(roots));
notifyOnAnyEvent();
}