Skip to content

Commit

Permalink
chore: fix sorting order of vscode.extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaegers committed Feb 29, 2024
1 parent be46e89 commit 6645501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/update-vscode-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ for EXTENSION in $(echo $JSON | jq -r '.[].customizations.vscode.extensions | fl
EXTENSIONS="\"$NAME@$VERSION\",$EXTENSIONS"
done

EXTENSIONS=${EXTENSIONS::-1}
EXTENSIONS=$(echo "[${EXTENSIONS::-1}]" | jq 'sort_by(. | ascii_downcase)')

echo $JSON | jq '.[].customizations.vscode.extensions = $extensions | sort' --argjson extensions "[$EXTENSIONS]" > $FILE
echo $JSON | jq '.[].customizations.vscode.extensions = $extensions' --argjson extensions "$EXTENSIONS" > $FILE

0 comments on commit 6645501

Please sign in to comment.