diff --git a/lib/paths-cache.js b/lib/paths-cache.js index 050cd5f..340c513 100644 --- a/lib/paths-cache.js +++ b/lib/paths-cache.js @@ -77,9 +77,9 @@ export default class PathsCache extends EventEmitter { this._fileWatchersByDirectory.forEach(async (watcher) => { await watcher.close() }) - this._fileWatchersByDirectory = new Map() - this._filePathsByProjectDirectory = new Map() - this._filePathsByDirectory = new Map() + this._fileWatchersByDirectory.clear() + this._filePathsByProjectDirectory.clear() + this._filePathsByDirectory.clear() this._repositories = [] if (this._projectWatcher) { this._projectWatcher.dispose()