Skip to content

Commit

Permalink
perf: fix directory watchers to not invoke them unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-oles committed Jun 8, 2020
1 parent 8e2c053 commit d3b698a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function createControlledTypeScriptSystem(
invokeFileChanged(path: string) {
const normalizedPath = realFileSystem.normalizePath(path);

if (deletedFiles.get(normalizedPath) || !fileWatchersMap.has(path)) {
if (deletedFiles.get(normalizedPath) || !fileWatchersMap.has(normalizedPath)) {
invokeFileWatchers(path, ts.FileWatcherEventKind.Created);
invokeDirectoryWatchers(normalizedPath);

Expand Down

0 comments on commit d3b698a

Please sign in to comment.