From 2adf8af547bd4620db35fe78d2a6823e5f48e19c Mon Sep 17 00:00:00 2001 From: "Justin Kolasa (from Dev Box)" Date: Thu, 24 Apr 2025 11:56:19 -0400 Subject: [PATCH] Added check if the link closed --- src/Explorer/Explorer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 731dd7372..ee7d8a738 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -298,7 +298,7 @@ export default class Explorer { const linkOpened = (navigator.userAgent.includes("Insiders") && window.open(vscodeInsidersUrl)) || window.open(vscodeUrl); - if (!linkOpened) { + if (!linkOpened || linkOpened.closed || typeof linkOpened.closed === "undefined") { logConsoleError("Visual Studio Code is not installed on this device"); window.open("https://code.visualstudio.com/download", "_blank"); }