#! /usr/bin/env nix-shell
#! nix-shell -i bash -p curl jq unzip
# shellcheck shell=bash
# can be added to your configuration with the following command and snippet:
# $ ./pkgs/misc/vscode-extensions/update_installed_exts.sh > extensions.nix
#
# packages = with pkgs;
# (vscode-with-extensions.override {
# vscodeExtensions = map
# (extension: vscode-utils.buildVscodeMarketplaceExtension {
# mktplcRef = {
# inherit (extension) name publisher version sha256;
# };
# })
# (import ./extensions.nix).extensions;
# })
# ]
# Helper to just fail with a message and non-zero exit code.
# Helper to clean up after ourselves if we're killed by SIGINT.
# See if we can find our `code` binary somewhere.
if [; then
CODE=
else
CODE=
fi
if [; then
# Not much point continuing.
fi
# Try to be a good citizen and clean up after ourselves if we're killed.
# Begin the printing of the nix expression that will house the list of extensions.
# Note that we are only looking to update extensions that are already installed.
for
do
OWNER=
EXT=
done
# Close off the nix expression.