Index: pkg/analyzer/lib/file_system/memory_file_system.dart |
diff --git a/pkg/analyzer/lib/file_system/memory_file_system.dart b/pkg/analyzer/lib/file_system/memory_file_system.dart |
index 8d1f1144b732ccb8774f601036047fd91fd8e3ba..4d8b549f0c57855ca5e7c4ba070540cab7d5f254 100644 |
--- a/pkg/analyzer/lib/file_system/memory_file_system.dart |
+++ b/pkg/analyzer/lib/file_system/memory_file_system.dart |
@@ -164,7 +164,7 @@ class MemoryResourceProvider implements ResourceProvider { |
void _notifyWatchers(String path, ChangeType changeType) { |
_pathToWatchers.forEach((String watcherPath, |
List<StreamController<WatchEvent>> streamControllers) { |
- if (posix.isWithin(watcherPath, path)) { |
+ if (watcherPath == path || posix.isWithin(watcherPath, path)) { |
for (StreamController<WatchEvent> streamController |
in streamControllers) { |
streamController.add(new WatchEvent(changeType, path)); |