Skip to content

Commit

Permalink
add --extensions-dir to --install
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Nov 19, 2024
1 parent f26bec3 commit cf0d975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install-vscode-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if [ ! -f "${ext_file}" ]; then
fi

# Set the extensions directory to be the conda dir so that it persists
mkdir -p ${NB_PYTHON_PREFIX}/share/code-server/extensions
${NB_PYTHON_PREFIX}/bin/code-server --extensions-dir ${NB_PYTHON_PREFIX}/share/code-server/extensions
EXT_DIR=${NB_PYTHON_PREFIX}/share/code-server/extensions
mkdir -p ${EXT_DIR}

# Install each extension listed in the file; skip empty lines or comments
while IFS= read -r EXT; do
Expand All @@ -41,7 +41,7 @@ while IFS= read -r EXT; do
# Skip if the line is now empty
[[ -z "$EXT" ]] && continue

if ${NB_PYTHON_PREFIX}/bin/code-server --install-extension "$EXT"; then
if ${NB_PYTHON_PREFIX}/bin/code-server --extensions-dir ${EXT_DIR} --install-extension "$EXT"; then
echo " Successfully installed extension: $EXT"
else
echo " Failed to install extension: $EXT" >&2
Expand Down

0 comments on commit cf0d975

Please sign in to comment.