From 2c4229b84073ac05590446bfb1be41e45565ce13 Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Wed, 22 Apr 2026 21:57:41 +0100 Subject: [PATCH 1/2] Web Applications: mark the namespace default one --- src/ui/serverManagerView.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/serverManagerView.ts b/src/ui/serverManagerView.ts index cb93117..514a78f 100644 --- a/src/ui/serverManagerView.ts +++ b/src/ui/serverManagerView.ts @@ -708,15 +708,15 @@ async function namespaceWebApps(element: ProjectsTreeItem, params?: any): Promis const response = await makeRESTRequest( "GET", serverSpec, - { apiVersion: 1, namespace: "%SYS", path: `/cspapps/${params.ns}` } + { apiVersion: 1, namespace: "%SYS", path: `/cspapps/${params.ns}?detail=1` } ); if (response?.status === 200) { if (response.data.result.content === undefined) { vscode.window.showErrorMessage(response.data.status.summary); return undefined; } - response.data.result.content.map((webapp: string) => { - children.push(new WebAppTreeItem({ parent: element, label: name, id: name }, webapp, params.serverApiVersion)); + response.data.result.content.map((webapp: any) => { + children.push(new WebAppTreeItem({ parent: element, label: name, id: name }, webapp.name, webapp.default, params.serverApiVersion)); }); } } @@ -726,7 +726,7 @@ async function namespaceWebApps(element: ProjectsTreeItem, params?: any): Promis export class WebAppTreeItem extends SMTreeItem { public readonly name: string; - constructor(element: ISMItem, name: string, serverApiVersion: number) { + constructor(element: ISMItem, name: string, isDefault: boolean, serverApiVersion: number) { const parentFolderId = element.parent?.id || ''; const id = parentFolderId + ':' + name; super({ @@ -736,6 +736,6 @@ export class WebAppTreeItem extends SMTreeItem { }); this.name = name; this.contextValue = `${serverApiVersion.toString()}${serverItemIsWsFolder(element?.parent?.parent?.parent?.parent) ? "/wsFolder" : ""}/webapp`; - this.iconPath = new vscode.ThemeIcon('file-code'); + this.iconPath = new vscode.ThemeIcon(isDefault ? 'folder-active' : 'folder'); } } From e6f17009eff4e112899697e422077cb5bd47f400 Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Wed, 22 Apr 2026 22:11:18 +0100 Subject: [PATCH 2/2] Different icon for Web Applications folder --- src/ui/serverManagerView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/serverManagerView.ts b/src/ui/serverManagerView.ts index 514a78f..414a42d 100644 --- a/src/ui/serverManagerView.ts +++ b/src/ui/serverManagerView.ts @@ -684,7 +684,7 @@ export class WebAppsTreeItem extends FeatureTreeItem { }); this.name = 'Web Applications'; this.contextValue = serverApiVersion.toString() + '/webapps'; - this.iconPath = new vscode.ThemeIcon('library'); + this.iconPath = new vscode.ThemeIcon('globe'); } }