You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/launchpad/src/dev/shellcode.ts
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -293,9 +293,24 @@ __launchpad_chpwd() {
293
293
# Ensure global dependencies are available first
294
294
__launchpad_setup_global_deps
295
295
296
-
# First install packages with visible progress messages (stderr visible, stdout hidden)
297
-
if LAUNCHPAD_SHELL_INTEGRATION=1 LAUNCHPAD_ORIGINAL_PATH="$LAUNCHPAD_ORIGINAL_PATH" ${launchpadBinary} dev "$project_dir" >/dev/null; then
298
-
# Installation succeeded, now get shell environment
296
+
# Show initial progress message
297
+
if [[ "\$\{LAUNCHPAD_SHOW_ENV_MESSAGES:-true\}" != "false" ]]; then
298
+
printf "🔧 Setting up project environment for $(basename "$project_dir")..." >&2
299
+
fi
300
+
301
+
# Run installation and capture output for simplified progress
302
+
local temp_output=$(mktemp)
303
+
if LAUNCHPAD_SHELL_INTEGRATION=1 LAUNCHPAD_ORIGINAL_PATH="$LAUNCHPAD_ORIGINAL_PATH" ${launchpadBinary} dev "$project_dir" > "$temp_output" 2>&1; then
304
+
# Show simplified progress based on what happened
305
+
if [[ "\$\{LAUNCHPAD_SHOW_ENV_MESSAGES:-true\}" != "false" ]]; then
306
+
if grep -q "cached" "$temp_output"; then
307
+
printf "\\r📦 Using cached dependencies..." >&2
308
+
elif grep -q "Download" "$temp_output"; then
309
+
printf "\\r📦 Installing dependencies..." >&2
310
+
fi
311
+
fi
312
+
rm -f "$temp_output" 2>/dev/null || true
313
+
# Installation succeeded, now get shell environment quietly
299
314
local temp_file=$(mktemp)
300
315
if LAUNCHPAD_SHELL_INTEGRATION=1 LAUNCHPAD_ORIGINAL_PATH="$LAUNCHPAD_ORIGINAL_PATH" ${launchpadBinary} dev "$project_dir" --shell > "$temp_file" 2>/dev/null; then
0 commit comments