From de3702bedcedc5bfe90a4ac49fd4b469bf9df0ac Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Fri, 31 Jan 2025 16:57:54 -0500 Subject: [PATCH] Improve inline_completions.disabled_globs in default.json (#24051) Make sure that inline completions (Copilot, etc) are disabled for more secret globs (matches `private_files`) --- assets/settings/default.json | 2 +- docs/src/configuring-zed.md | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index a4a30300c6f29e..0db8d87b5faa74 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -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": { diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index e611f718c0e031..82b0b36a0d2f03 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -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**