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
|
# Handle use_cached mode
|
||||||
if [ "${USE_CACHED}" = true ] && [ -n "$CODE_CMD" ]; then
|
if [ "${USE_CACHED}" = true ] && [ -n "$CODE_CMD" ]; then
|
||||||
printf "Using cached VS Code CLI.\n"
|
printf "Using cached VS Code CLI.\n"
|
||||||
install_extensions "$CODE_CMD"
|
|
||||||
run_vscode_web_cli "$CODE_CMD"
|
run_vscode_web_cli "$CODE_CMD"
|
||||||
|
sleep 2
|
||||||
|
install_extensions "$CODE_CMD"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -360,8 +361,7 @@ if [ -z "$CODE_CMD" ]; then
|
|||||||
RUN_MODE="cli"
|
RUN_MODE="cli"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install extensions
|
# Run VS Code Web first (extensions need the server running)
|
||||||
install_extensions "$CODE_CMD"
|
|
||||||
|
|
||||||
# Run VS Code Web
|
|
||||||
run_vscode_web_cli "$CODE_CMD"
|
run_vscode_web_cli "$CODE_CMD"
|
||||||
|
sleep 2
|
||||||
|
install_extensions "$CODE_CMD"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user