tools: ignore .db and .sqlite files by default in v watch (such DB files are very likely to change during prototyping)

This commit is contained in:
Delyan Angelov 2025-06-05 18:47:00 +03:00
parent a91e2def83
commit a13821a951
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -127,6 +127,10 @@ fn (mut context Context) is_ext_ignored(pf string, pf_ext string) bool {
if pf_ext == '.bak' { if pf_ext == '.bak' {
return true return true
} }
// ignore DB files (sqlite databases, that are likely to change during prototyping):
if pf_ext in ['.db', '.sqlite'] {
return true
}
if pf.starts_with('.#') { if pf.starts_with('.#') {
return true return true
} }