From 847c9491af84cc6c359d755e1388823a2c85faa9 Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Tue, 24 Feb 2026 14:00:42 -0600 Subject: [PATCH] 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. --- registry/coder/modules/vscode-web/run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/registry/coder/modules/vscode-web/run.sh b/registry/coder/modules/vscode-web/run.sh index 07acb5ba..140905ef 100644 --- a/registry/coder/modules/vscode-web/run.sh +++ b/registry/coder/modules/vscode-web/run.sh @@ -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"