Normalize slashes for paths in watch events (#57968)

This commit is contained in:
Sheetal Nandi
2024-03-27 14:16:35 -07:00
committed by GitHub
parent ed5eeafdad
commit 54504fc9b3
3 changed files with 1478 additions and 10 deletions
+1 -1
View File
@@ -997,7 +997,7 @@ function createWatchFactoryHostUsingWatchEvents(service: ProjectService, canUseW
cb: (callback: T, eventPath: string) => void,
) {
hostWatcherMap.idToCallbacks.get(id)?.forEach(callback => {
eventPaths.forEach(eventPath => cb(callback, eventPath));
eventPaths.forEach(eventPath => cb(callback, normalizeSlashes(eventPath)));
});
}
}