Skip to content

Commit cde400f

Browse files
committed
Package up VS Code settings for Copilot
1 parent ba8144d commit cde400f

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/scripts/create-release-packages.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ build_variant() {
129129
esac
130130
fi
131131

132-
[[ -d templates ]] && { mkdir -p "$SPEC_DIR/templates"; find templates -type f -not -path "templates/commands/*" -exec cp --parents {} "$SPEC_DIR"/ \; ; echo "Copied templates -> .specify/templates"; }
132+
[[ -d templates ]] && { mkdir -p "$SPEC_DIR/templates"; find templates -type f -not -path "templates/commands/*" -not -name "vscode-settings.json" -exec cp --parents {} "$SPEC_DIR"/ \; ; echo "Copied templates -> .specify/templates"; }
133133

134134
# NOTE: We substitute {ARGS} internally. Outward tokens differ intentionally:
135135
# * Markdown/prompt (claude, copilot, cursor, opencode): $ARGUMENTS
@@ -146,7 +146,11 @@ build_variant() {
146146
[[ -f agent_templates/gemini/GEMINI.md ]] && cp agent_templates/gemini/GEMINI.md "$base_dir/GEMINI.md" ;;
147147
copilot)
148148
mkdir -p "$base_dir/.github/prompts"
149-
generate_commands copilot prompt.md "\$ARGUMENTS" "$base_dir/.github/prompts" "$script" ;;
149+
generate_commands copilot prompt.md "\$ARGUMENTS" "$base_dir/.github/prompts" "$script"
150+
# Create VS Code workspace settings
151+
mkdir -p "$base_dir/.vscode"
152+
[[ -f templates/vscode-settings.json ]] && cp templates/vscode-settings.json "$base_dir/.vscode/settings.json"
153+
;;
150154
cursor)
151155
mkdir -p "$base_dir/.cursor/commands"
152156
generate_commands cursor md "\$ARGUMENTS" "$base_dir/.cursor/commands" "$script" ;;

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Support for using `.` as a shorthand for current directory in `specify init .` command, equivalent to `--here` flag but more intuitive for users.
1515
- Refactor the prompts and templates to simplify their capabilities and how they are tracked. No more polluting things with tests when they are not needed.
1616
- Ensure that tasks are created per user story (simplifies testing and validation).
17+
- Add support for Visual Studio Code prompt shortcuts and automatic script execution.
1718

1819
### Changed
1920

templates/vscode-settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"chat.promptFilesRecommendations": {
3+
"speckit.constitution": true,
4+
"speckit.specify": true,
5+
"speckit.plan": true,
6+
"speckit.tasks": true,
7+
"speckit.implement": true
8+
},
9+
"chat.tools.terminal.autoApprove": {
10+
".specify/scripts/bash/": true,
11+
".specify/scripts/ps/": true
12+
}
13+
}

0 commit comments

Comments
 (0)