posit-dev / publisher

MIT License
3 stars 0 forks source link

Debounce allFiles watcher #1856

Closed mmarchetti closed 1 week ago

mmarchetti commented 2 weeks ago

Intent

This PR debounces the allFiles watcher in the home view that drives updates to the Project Files view. This watcher is triggered on FS events anywhere in the workspace. Other file watchers (for configurations, package files, etc) are unchanged.

Fixes #1735

Type of Change

Approach

Use the npm debounce package.

Directions for Reviewers

Run a process that creates lots of files, for example, creating a virtual environment and installing a collection of packages into it. Review the backend logs for Files API calls, and see that they don't occur too frequently.