Skip to content

Commit 095f837

Browse files
MLoughryjohnnyreilly
authored andcommitted
Fix name collision in experimentalWatchApi code (#737)
1 parent 8b07efb commit 095f837

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/servicesHost.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,19 @@ export function makeWatchHost(
196196

197197
fileExists,
198198
readFile: readFileWithCachingText,
199-
directoryExists: path => compiler.sys.directoryExists(path.normalize(path)),
200-
getDirectories: path => compiler.sys.getDirectories(path.normalize(path)),
201-
readDirectory: (path, extensions, exclude, include, depth) =>
199+
directoryExists: dirPath =>
200+
compiler.sys.directoryExists(path.normalize(dirPath)),
201+
getDirectories: dirPath =>
202+
compiler.sys.getDirectories(path.normalize(dirPath)),
203+
readDirectory: (dirPath, extensions, exclude, include, depth) =>
202204
compiler.sys.readDirectory(
203-
path.normalize(path),
205+
path.normalize(dirPath),
204206
extensions,
205207
exclude,
206208
include,
207209
depth
208210
),
209-
realpath: path => compiler.sys.resolvePath(path.normalize(path)),
211+
realpath: dirPath => compiler.sys.resolvePath(path.normalize(dirPath)),
210212
trace: logData => log.log(logData),
211213

212214
watchFile,

0 commit comments

Comments
 (0)