Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion vscode/extensions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ sourcegraph.amp
tamasfe.even-better-toml
timonwong.shellcheck
vscodevim.vim
yokawasa.jwt-debugger
ziglang.vscode-zig
18 changes: 15 additions & 3 deletions vscode/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,21 @@ if [ -f "$EXTENSIONS_FILE" ]; then
while IFS= read -r line; do
echo " $line"
done <<< "$EXTENSIONS_TO_INSTALL"
# Pass only the missing extensions to the install command
xargs -L 1 code --install-extension <<< "$EXTENSIONS_TO_INSTALL"
echo " Missing extension installation complete."
# Install extensions one by one, continuing on failures
while IFS= read -r ext; do
# Capture output and exit code separately to avoid pipefail issues
if output=$(code --install-extension "$ext" 2>&1); then
echo " ✓ $ext"
else
# Check if it's a "not found" error or other failure
if echo "$output" | grep -q "not found"; then
echo " ✗ $ext (not found)"
else
echo " ✗ $ext (failed: ${output%%$'\n'*})"
fi
fi
done <<< "$EXTENSIONS_TO_INSTALL"
echo " Extension installation complete."
else
echo " All specified extensions are already installed."
fi
Expand Down