mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
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:
parent
a91e2def83
commit
a13821a951
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue