How fsWatcherDelayS works on continuous file change

First of all, thank you for the great project, I like it!

I want to know more about how fsWatcherDelayS works. Let’s say, if I set fsWatcherDelayS=2, and modify fileA at timestamp=0, and then modify fileB at timestamp=1. Then, when will the syncing be executed?

  1. timestamp=2 (2s after the first watched change)
  2. timestamp=3 (2s after the last watched change)

I’m using Synching for remote development (I have set .stignore to ignore folders like .git, node_modules, etc, and it works well), and I want to adjust the fsWatcherDelayS for best performance.
If fsWatcherDelayS means the delay after the first watched change (for former case), then I should increase it a little bit (maybe > 2). However, if fsWatcherDelayS means the latter case, I think it can be safely set lower (maybe 2 or even 1).

This, up to a limit when it sees repeated changes.

Got it! Thank you!