Skip to content

Commit

Permalink
feat(core): watcher ignore buildServer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kkharji committed Mar 14, 2022
1 parent 845d62c commit 1d0f012
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions shared/src/watch.rs
Expand Up @@ -62,10 +62,16 @@ fn should_ignore(last_seen: Arc<Mutex<String>>, path: &str) -> bool {

// TODO: Cleanup get_ignore_patterns and decrease duplications
async fn get_ignore_patterns(state: SharedState, root: &String) -> Vec<String> {
let mut patterns: Vec<String> = vec!["**/.git/**", "**/*.xcodeproj/**", "**/.*", "**/build/**"]
.iter()
.map(|e| e.to_string())
.collect();
let mut patterns: Vec<String> = vec![
"**/.git/**",
"**/*.xcodeproj/**",
"**/.*",
"**/build/**",
"**/buildServer.json",
]
.iter()
.map(|e| e.to_string())
.collect();

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

0 comments on commit 1d0f012

Please sign in to comment.