Skip to content

Commit

Permalink
fix: _addWatchers
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 18, 2021
1 parent 4f98074 commit e18ec8e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/paths-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@ export default class PathsCache extends EventEmitter {
this._repositories = repositories.filter((r) => r !== null) // filter out non-repository directories
}

/**
* Add watchers for all the projectDirectories
* @return {Promise<Array<Array<string>>}
* @private
*/
async _addWatchers() {
const result = await Promise.all(
this._projectDirectories.map((projectDirectory) => this._addWatcherForDirectory(projectDirectory))
)
return result
}

/**
* Add a watcher for the projectDirectory
* @param {Directory} projectDirectory
Expand Down

0 comments on commit e18ec8e

Please sign in to comment.