mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Normalize slashes for paths in watch events (#57968)
This commit is contained in:
@@ -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)));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user