Commit 5a67ac8
committed
Ignore hidden and editor temporary files in livereload file watcher
Filter out files that match common editor temporary/backup file
patterns in the livereload file watcher callback:
- Files starting with '.' (dotfiles, vim swap files like .foo.md.swp)
- Files ending with '~' (backup files)
- Files matching '#*#' (Emacs auto-save files)
This prevents live reload from being triggered repeatedly by
editor temporary files, which was especially problematic for
vim users where editing .md files creates .foo.md.swp files.
Fixes #25191 parent e5a2c9c commit 5a67ac8
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
165 | 176 | | |
166 | 177 | | |
167 | 178 | | |
| |||
0 commit comments