Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FileSystemVault): Add file change debouncing mechanism
This commit adds a file change debouncing mechanism to the `FileSystemVault` class. It introduces a dictionary of file change locks, which helps mitigate duplicate dispatches of a given file change event. The debounce period between file changes is set to 100 milliseconds. The code changes include: - Addition of `_fileChangeLocks` dictionary to store file change locks - Introduction of `DebouncePeriod` constant for setting the debounce period - Implementation of logic to check and update the reference hash at the time of lock acquisition - Dispatching the `VaultUpdate` event only if the debounce period has elapsed since the last change
- Loading branch information