Skip to content

v0.7.2: Ignore directory write events to prevent reload loops.

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Oct 05:17
When a new file is created, a CREATE event is emitted for the file and a
WRITE event is emitted for the directory because the last write
timestamp was changed, at least on Windows. This creates an unexpected
reload loop where a completely unrelated .tmp file written into a
directory still triggers a -file .cpp and -file.hpp filter because the
directory WRITE event bypasses the .cpp and .hpp file checks and
straight up returns true as long as it's not .git, .hg, .svn, .idea,
.vscode, .settings or node_modules.

Also fixed some failing tests when running on Windows.