Improve inline_completions.disabled_globs in default.json (#24051)
Peter Tripp
created
Make sure that inline completions (Copilot, etc) are disabled for more secret globs (matches `private_files`)
Change summary
assets/settings/default.json | 2 +-
docs/src/configuring-zed.md | 15 ++++++++++-----
2 files changed, 11 insertions(+), 6 deletions(-)
Detailed changes
@@ -773,7 +773,7 @@
"load_direnv": "direct",
"inline_completions": {
// A list of globs representing files that inline completions should be disabled for.
- "disabled_globs": [".env"]
+ "disabled_globs": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"]
},
// Settings specific to journaling
"journal": {
@@ -382,11 +382,16 @@ There are two options to choose from:
- Default:
```json
-"inline_completions": {
- "disabled_globs": [
- ".env"
- ]
-}
+ "inline_completions": {
+ "disabled_globs": [
+ "**/.env*",
+ "**/*.pem",
+ "**/*.key",
+ "**/*.cert",
+ "**/*.crt",
+ "**/secrets.yml"
+ ]
+ }
```
**Options**