mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 08:51:24 +00:00
Prettier run
This commit is contained in:
@@ -292,7 +292,9 @@ export default class Explorer {
|
|||||||
const container = activeTab.collection?.id();
|
const container = activeTab.collection?.id();
|
||||||
|
|
||||||
if (!database || !container) {
|
if (!database || !container) {
|
||||||
logConsoleError("Failed to open Visual Studio Code, a database account and container is required to open in VS Code.");
|
logConsoleError(
|
||||||
|
"Failed to open Visual Studio Code, a database account and container is required to open in VS Code.",
|
||||||
|
);
|
||||||
clearInProgressMessage();
|
clearInProgressMessage();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -302,7 +304,8 @@ export default class Explorer {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
logConsoleInfo("Opening Visual Studio Code");
|
logConsoleInfo("Opening Visual Studio Code");
|
||||||
const linkOpened = (navigator.userAgent.includes("Insiders") && window.open(vscodeInsidersUrl)) || window.open(vscodeUrl);
|
const linkOpened =
|
||||||
|
(navigator.userAgent.includes("Insiders") && window.open(vscodeInsidersUrl)) || window.open(vscodeUrl);
|
||||||
|
|
||||||
if (!linkOpened) {
|
if (!linkOpened) {
|
||||||
logConsoleError("Visual Studio Code is not installed on this device");
|
logConsoleError("Visual Studio Code is not installed on this device");
|
||||||
|
|||||||
Reference in New Issue
Block a user