mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-17 13:54:51 +01:00
Changed from referencing location to a link
This commit is contained in:
parent
8fa84add97
commit
7747351565
@ -299,14 +299,20 @@ export default class Explorer {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const timeOutTime = Date.now() - startTime;
|
const timeOutTime = Date.now() - startTime;
|
||||||
if (!vsCodeNotOpened && timeOutTime < 1200) {
|
if (!vsCodeNotOpened && timeOutTime < 1100) {
|
||||||
vsCodeNotOpened = true;
|
vsCodeNotOpened = true;
|
||||||
useDialog.getState().openDialog(openVSCodeDialogProps);
|
useDialog.getState().openDialog(openVSCodeDialogProps);
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
const link = document.createElement('a');
|
||||||
|
link.href = vscodeUrl;
|
||||||
|
link.rel = 'noopener noreferrer';
|
||||||
|
document.body.appendChild(link);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
window.location.href = vscodeUrl;
|
link.click();
|
||||||
|
document.body.removeChild(link);
|
||||||
TelemetryProcessor.traceStart(Action.OpenVSCode);
|
TelemetryProcessor.traceStart(Action.OpenVSCode);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!vsCodeNotOpened) {
|
if (!vsCodeNotOpened) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user