watch: debounce restart in watch mode (#51954)
In the current implementation, running in watch mode will not debounce the restart of the script when multiple files are updated simultaneously (e.g. after changing git branch, or triggering a build of a local dependency). See #51954 (closed).
This is an example of how this could be fixed.
I am not familiar with contributing to this project. Feel free to close.