Skip to content

Commit

Permalink
Improve inline_completions.disabled_globs in default.json (#24051)
Browse files Browse the repository at this point in the history
Make sure that inline completions (Copilot, etc) are disabled for more secret globs (matches `private_files`)
  • Loading branch information
notpeter authored Jan 31, 2025
1 parent d04800c commit de3702b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/settings/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,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": {
Expand Down
15 changes: 10 additions & 5 deletions docs/src/configuring-zed.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down

0 comments on commit de3702b

Please sign in to comment.