Skip to content

Commit cc512ea

Browse files
committed
Compromise by removing namespace-specific Simple Browser variant
1 parent 613cbce commit cc512ea

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

package.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,9 @@
302302
"title": "Open Management Portal in Tab",
303303
"icon": "$(tools)"
304304
},
305-
{
306-
"command": "intersystems-community.servermanager.openPortalExplorerTab",
307-
"title": "Open Management Portal's Class Utilities in Tab",
308-
"icon": "$(tools)"
309-
},
310305
{
311306
"command": "intersystems-community.servermanager.openPortalExplorerExternal",
312-
"title": "Open in External Browser",
307+
"title": "Open Management Portal Here in External Browser",
313308
"icon": "$(link-external)"
314309
},
315310
{
@@ -459,10 +454,6 @@
459454
"command": "intersystems-community.servermanager.openPortalExplorerExternal",
460455
"when": "false"
461456
},
462-
{
463-
"command": "intersystems-community.servermanager.openPortalExplorerTab",
464-
"when": "false"
465-
},
466457
{
467458
"command": "intersystems-community.servermanager.retryServer",
468459
"when": "false"
@@ -614,10 +605,9 @@
614605
"group": "inline@90"
615606
},
616607
{
617-
"command": "intersystems-community.servermanager.openPortalExplorerTab",
608+
"command": "intersystems-community.servermanager.openPortalExplorerExternal",
618609
"when": "view == intersystems-community_servermanager && viewItem =~ /namespace$/",
619-
"group": "inline@80",
620-
"alt": "intersystems-community.servermanager.openPortalExplorerExternal"
610+
"group": "inline@80"
621611
},
622612
{
623613
"command": "intersystems-community.servermanager.retryServer",

src/extension.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,6 @@ export function activate(context: vscode.ExtensionContext) {
128128
}
129129
}),
130130
);
131-
context.subscriptions.push(
132-
vscode.commands.registerCommand(`${extensionId}.openPortalExplorerTab`, (namespaceTreeItem?: NamespaceTreeItem) => {
133-
if (namespaceTreeItem) {
134-
const pathParts = namespaceTreeItem.id?.split(":");
135-
if (pathParts && pathParts.length === 4) {
136-
const serverName = pathParts[1];
137-
const namespace = pathParts[3];
138-
getPortalUriWithToken(BrowserTarget.SIMPLE, serverName, "/csp/sys/exp/%2525CSP.UI.Portal.ClassList.zen", namespace).then((uriWithToken) => {
139-
if (uriWithToken) {
140-
//
141-
// It is essential to pass skipEncoding=true when converting the uri to a string,
142-
// otherwise the querystring's & and = get encoded.
143-
vscode.commands.executeCommand("simpleBrowser.show", uriWithToken.toString(true));
144-
}
145-
});
146-
}
147-
}
148-
}),
149-
);
150131
context.subscriptions.push(
151132
vscode.commands.registerCommand(`${extensionId}.editSettings`, (server?: ServerTreeItem) => {
152133
// Until there's a dedicated settings editor the best we can do is jump to the right section

0 commit comments

Comments
 (0)