Skip to content

Commit 1d0f012

Browse files
committed
feat(core): watcher ignore buildServer.json
1 parent 845d62c commit 1d0f012

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

shared/src/watch.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,16 @@ fn should_ignore(last_seen: Arc<Mutex<String>>, path: &str) -> bool {
6262

6363
// TODO: Cleanup get_ignore_patterns and decrease duplications
6464
async fn get_ignore_patterns(state: SharedState, root: &String) -> Vec<String> {
65-
let mut patterns: Vec<String> = vec!["**/.git/**", "**/*.xcodeproj/**", "**/.*", "**/build/**"]
66-
.iter()
67-
.map(|e| e.to_string())
68-
.collect();
65+
let mut patterns: Vec<String> = vec![
66+
"**/.git/**",
67+
"**/*.xcodeproj/**",
68+
"**/.*",
69+
"**/build/**",
70+
"**/buildServer.json",
71+
]
72+
.iter()
73+
.map(|e| e.to_string())
74+
.collect();
6975

7076
// FIXME: Addding extra ignore patterns to `ignore` local config requires restarting deamon.
7177
let extra_patterns = state

0 commit comments

Comments
 (0)