@@ -268,7 +268,9 @@
// Whether to show warnings or not by default.
"include_warnings": true
},
- // TODO kb docs
+ // Add files or globs of files that will be excluded by Zed entirely:
+ // they will be skipped during FS scan(s), file tree and file search
+ // will lack the corresponding file entries.
"file_scan_exclusions": [
"**/.git",
"**/.svn",
@@ -3502,6 +3502,7 @@ impl BackgroundScanner {
let state = self.state.lock();
let snapshot = &state.snapshot;
root_abs_path = snapshot.abs_path().clone();
+ // TODO kb we need `DOT_GIT` and `GITIGNORE` entries always processed.
if snapshot.is_abs_path_excluded(&job.abs_path) {
log::error!("skipping excluded directory {:?}", job.path);
return Ok(());