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:
parent
10142cbe1c
commit
847c9491af
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user