(type: string, path: string)
| 306 | } |
| 307 | |
| 308 | enqueueFsEvent(type: string, path: string): void { |
| 309 | this.watchAggregationEvents.push({ type, path }); |
| 310 | if (this.watchAggregationId === null) { |
| 311 | this.watchAggregationId = setTimeout(() => { |
| 312 | const events = this.watchAggregationEvents.slice(); |
| 313 | this.watchAggregationEvents.length = 0; |
| 314 | this.watchAggregationId = null; |
| 315 | this.handleFilesystemEvents(events); |
| 316 | }, this.watchAggregationTimeout); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | async handleFilesystemEvents(events: FSEvent[]): Promise<void> { |
| 321 | output.debug(`Filesystem watcher notified of ${events.length} events`); |
no test coverage detected