mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-18 22:34:08 +01:00
Added log messages
This commit is contained in:
parent
596c01f430
commit
3acf1fcf1b
@ -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)}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user