From 3acf1fcf1b52d36bf7335fe9ea53f4d68bb5f799 Mon Sep 17 00:00:00 2001 From: "Justin Kolasa (from Dev Box)" Date: Mon, 28 Apr 2025 13:03:13 -0400 Subject: [PATCH] Added log messages --- src/Explorer/Explorer.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 0f973885c..caf42c3ce 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -303,16 +303,19 @@ export default class Explorer { if (!hasRedirected && Date.now() - startTime < 1200) { hasRedirected = true; window.open(downloadUrl, "_blank"); + logConsoleInfo("VS Code not detected. Opening download page."); } }, 1000); try { iframe.src = vscodeUrl; window.location.href = vscodeUrl; + logConsoleInfo("Opening VS Code"); } catch (error) { if (!hasRedirected) { hasRedirected = true; window.open(downloadUrl, "_blank"); + logConsoleError(`Failed to open VS Code: ${getErrorMessage(error)}`); } } }