From 77473515654989397dca8f9da20756b13295e4aa Mon Sep 17 00:00:00 2001 From: "Justin Kolasa (from Dev Box)" Date: Tue, 6 May 2025 09:18:27 -0400 Subject: [PATCH] Changed from referencing location to a link --- src/Explorer/Explorer.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index f0262a2b5..4905b43c1 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -299,14 +299,20 @@ export default class Explorer { setTimeout(() => { const timeOutTime = Date.now() - startTime; - if (!vsCodeNotOpened && timeOutTime < 1200) { + if (!vsCodeNotOpened && timeOutTime < 1100) { vsCodeNotOpened = true; useDialog.getState().openDialog(openVSCodeDialogProps); } }, 1000); + const link = document.createElement('a'); + link.href = vscodeUrl; + link.rel = 'noopener noreferrer'; + document.body.appendChild(link); + try { - window.location.href = vscodeUrl; + link.click(); + document.body.removeChild(link); TelemetryProcessor.traceStart(Action.OpenVSCode); } catch (error) { if (!vsCodeNotOpened) {