File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "id" : " copilot-cli" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.1.2 " ,
44 "name" : " GitHub Copilot CLI" ,
55 "documentationURL" : " https://github.com/devcontainers/features/tree/main/src/copilot-cli" ,
66 "description" : " Installs the GitHub Copilot CLI." ,
1515 "description" : " Select version of the GitHub Copilot CLI, if not latest."
1616 }
1717 },
18+ "postStartCommand" : " [ -f /etc/devcontainer-copilot-cli/auto-update ] && copilot update || true" ,
1819 "customizations" : {
1920 "vscode" : {
2021 "settings" : {
Original file line number Diff line number Diff line change @@ -80,3 +80,9 @@ echo "Downloading GitHub Copilot CLI..."
8080
8181install_using_github
8282
83+ # Create a flag file if using "latest" or "prerelease" so the postStartCommand knows to auto-update
84+ if [ " ${CLI_VERSION} " = " latest" ] || [ " ${CLI_VERSION} " = " prerelease" ]; then
85+ mkdir -p /etc/devcontainer-copilot-cli
86+ touch /etc/devcontainer-copilot-cli/auto-update
87+ fi
88+
You can’t perform that action at this time.
0 commit comments