Files
arch-system-hyprland/03-user/45-vscode.sh
T
2026-07-02 15:56:21 +02:00

20 lines
659 B
Bash

# Install VS Code extensions (edit the list below to add/remove).
# code is the native OSS build (pacman 'code'), installed by the system layer.
# It resolves extensions against the Open VSX registry (not the MS Marketplace).
# `code --install-extension` is idempotent: it skips anything already present.
if ! command -v code >/dev/null; then
echo " skip: code not installed — no VS Code extensions"
return 0 2>/dev/null || exit 0
fi
exts=(
anthropic.claude-code
esbenp.prettier-vscode
)
for ext in "${exts[@]}"; do
code --install-extension "$ext" >/dev/null 2>&1 \
&& info "extension: $ext" \
|| echo " FAILED extension: $ext"
done