fix: adjust VS Code Web CLI execution order to ensure extensions are installed after server starts

- Added a sleep command to allow the VS Code Web server to start before installing extensions.
- Modified the script to run the VS Code Web CLI first, followed by the installation of extensions.
This commit is contained in:
DevelopmentCats 2026-02-24 14:00:42 -06:00
parent 10142cbe1c
commit 847c9491af

View File

@ -348,8 +348,9 @@ fi
# Handle use_cached mode
if [ "${USE_CACHED}" = true ] && [ -n "$CODE_CMD" ]; then
printf "Using cached VS Code CLI.\n"
install_extensions "$CODE_CMD"
run_vscode_web_cli "$CODE_CMD"
sleep 2
install_extensions "$CODE_CMD"
exit 0
fi
@ -360,8 +361,7 @@ if [ -z "$CODE_CMD" ]; then
RUN_MODE="cli"
fi
# Install extensions
install_extensions "$CODE_CMD"
# Run VS Code Web
# Run VS Code Web first (extensions need the server running)
run_vscode_web_cli "$CODE_CMD"
sleep 2
install_extensions "$CODE_CMD"