Remove slash-commands-example extension (#52835)

Follow-up to https://github.com/zed-industries/zed/pull/52757

Release Notes:

- N/A
This commit is contained in:
Finn Evers authored and GitHub committed 2026-03-31 18:27:38 +02:00
1 parent a0ef595454
commit a71c060bce
12 files changed
+30 -225

No files matched your search

-1
View File
@@ -161,7 +161,6 @@
/extensions/glsl/ @zed-industries/ecosystem-team
/extensions/html/ @zed-industries/ecosystem-team
/extensions/proto/ @zed-industries/ecosystem-team
/extensions/slash-commands-example/ @zed-industries/ecosystem-team
/extensions/test-extension/ @zed-industries/ecosystem-team
/extensions/workflows/ @zed-industries/ecosystem-team
+10 -4
View File
@@ -7,7 +7,6 @@ on:
- main
paths:
- extensions/**
- '!extensions/slash-commands-example/**'
- '!extensions/test-extension/**'
- '!extensions/workflows/**'
- '!extensions/*.md'
@@ -28,16 +27,23 @@ jobs:
CHANGED_FILES="$(git diff --name-only "$COMPARE_REV" "$GITHUB_SHA")"
# Detect changed extension directories (excluding extensions/workflows)
CHANGED_EXTENSIONS=$(echo "$CHANGED_FILES" | grep -oP '^extensions/[^/]+(?=/)' | sort -u | grep -v '^extensions/workflows$' || true)
# Filter out deleted extensions
EXISTING_EXTENSIONS=""
for ext in $CHANGED_EXTENSIONS; do
if [ -f "$ext/extension.toml" ]; then
EXISTING_EXTENSIONS=$(printf '%s\n%s' "$EXISTING_EXTENSIONS" "$ext")
fi
done
CHANGED_EXTENSIONS=$(echo "$EXISTING_EXTENSIONS" | sed '/^$/d')
if [ -n "$CHANGED_EXTENSIONS" ]; then
EXTENSIONS_JSON=$(echo "$CHANGED_EXTENSIONS" | jq -R -s -c 'split("\n") | map(select(length > 0))')
else
EXTENSIONS_JSON="[]"
fi
# Filter out newly added or entirely removed extensions
# Filter out newly added extensions
FILTERED="[]"
for ext in $(echo "$EXTENSIONS_JSON" | jq -r '.[]'); do
if git show HEAD~1:"$ext/extension.toml" >/dev/null 2>&1 && \
[ -f "$ext/extension.toml" ]; then
if git show HEAD~1:"$ext/extension.toml" >/dev/null 2>&1; then
FILTERED=$(echo "$FILTERED" | jq -c --arg e "$ext" '. + [$e]')
fi
done
+8
View File
@@ -106,6 +106,14 @@ jobs:
check_pattern "run_tests" '^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests))|extensions/)' -qvP
# Detect changed extension directories (excluding extensions/workflows)
CHANGED_EXTENSIONS=$(echo "$CHANGED_FILES" | grep -oP '^extensions/[^/]+(?=/)' | sort -u | grep -v '^extensions/workflows$' || true)
# Filter out deleted extensions
EXISTING_EXTENSIONS=""
for ext in $CHANGED_EXTENSIONS; do
if [ -f "$ext/extension.toml" ]; then
EXISTING_EXTENSIONS=$(printf '%s\n%s' "$EXISTING_EXTENSIONS" "$ext")
fi
done
CHANGED_EXTENSIONS=$(echo "$EXISTING_EXTENSIONS" | sed '/^$/d')
if [ -n "$CHANGED_EXTENSIONS" ]; then
EXTENSIONS_JSON=$(echo "$CHANGED_EXTENSIONS" | jq -R -s -c 'split("\n") | map(select(length > 0))')
else