You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,7 +20,6 @@ export async function connectFolderToServerNamespace(): Promise<void> {
14
20
vscode.window.showErrorMessage("No folders in the workspace.","Dismiss");
15
21
return;
16
22
}
17
-
constserverManagerApi=awaitgetServerManagerApi();
18
23
if(!serverManagerApi){
19
24
vscode.window.showErrorMessage(
20
25
"Connecting a folder to a server namespace requires the [InterSystems Server Manager extension](https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager) to be installed and enabled.",
@@ -31,43 +36,72 @@ export async function connectFolderToServerNamespace(): Promise<void> {
31
36
return{
32
37
label: folder.name,
33
38
description: folder.uri.fsPath,
34
-
detail: !conn.server ? undefined : `Currently connected to ${conn.ns} on ${conn.server}`,
39
+
detail:
40
+
!conn.server||!conn.active
41
+
? "No active server connection"
42
+
: `Currently connected to ${conn.ns} on ${conn.server}`,
35
43
};
36
44
});
37
45
if(!items.length){
38
46
vscode.window.showErrorMessage("No local folders in the workspace.","Dismiss");
/** Map of the intersystems.server connection specs we have resolved via the API to that extension */
222
222
constresolvedConnSpecs=newMap<string,any>();
@@ -227,22 +227,26 @@ const resolvedConnSpecs = new Map<string, any>();
227
227
* @param serverName authority element of an isfs uri, or `objectscript.conn.server` property, or the name of a root folder with an `objectscript.conn.docker-compose` property object
228
228
* @param uri if passed, re-check the `objectscript.conn.docker-compose` case in case servermanager API couldn't do that because we're still running our own `activate` method.
0 commit comments