Document file_scan_inclusions and make consistent with default.json (#25046)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-02-17 16:31:06 -07:00 committed by GitHub
parent bb53ad9862
commit 888dc0b344
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 8 deletions

View file

@ -1145,7 +1145,7 @@ The result is still `)))` and not `))))))`, which is what it would be by default
## File Scan Exclusions
- Setting: `file_scan_exclusions`
- Description: Configure how Add filename or directory globs that will be excluded by Zed entirely. They will be skipped during file scans, file searches and hidden from project file tree.
- Description: Files or globs of files that will be excluded by Zed entirely. They will be skipped during file scans, file searches, and not be displayed in the project file tree. Overrides `file_scan_inclusions`.
- Default:
```json
@ -1164,6 +1164,16 @@ The result is still `)))` and not `))))))`, which is what it would be by default
Note, specifying `file_scan_exclusions` in settings.json will override the defaults (shown above). If you are looking to exclude additional items you will need to include all the default values in your settings.
## File Scan Inclusions
- Setting: `file_scan_inclusions`
- Description: Files or globs of files that will be included by Zed, even when ignored by git. This is useful for files that are not tracked by git, but are still important to your project. Note that globs that are overly broad can slow down Zed's file scanning. `file_scan_exclusions` takes precedence over these inclusions.
- Default:
```json
"file_scan_inclusions": [".env*"],
```
## File Types
- Setting: `file_types`