From e27d38542062f1a71a0b2ca080529a6719ab0281 Mon Sep 17 00:00:00 2001 From: Trae Yelovich Date: Wed, 27 Sep 2023 10:45:16 -0400 Subject: [PATCH] fix(uss): update USS directory icons when collapsed Signed-off-by: Trae Yelovich --- packages/zowe-explorer/CHANGELOG.md | 1 + packages/zowe-explorer/src/uss/USSTree.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/packages/zowe-explorer/CHANGELOG.md b/packages/zowe-explorer/CHANGELOG.md index 0001bbd025..821a194860 100644 --- a/packages/zowe-explorer/CHANGELOG.md +++ b/packages/zowe-explorer/CHANGELOG.md @@ -14,6 +14,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen - Fixed issue where USS nodes were not removed from tree during deletion. [#2479](https://github.com/zowe/vscode-extension-for-zowe/issues/2479) - Fixed issue where new USS nodes from a paste operation were not shown in tree until refreshed. [#2479](https://github.com/zowe/vscode-extension-for-zowe/issues/2479) - Fixed issue where the "Delete Job" action showed a successful deletion message, even if the API returned an error. +- USS directories now update with a collapsed directory icon when the folder is collapsed. ## `2.11.0` diff --git a/packages/zowe-explorer/src/uss/USSTree.ts b/packages/zowe-explorer/src/uss/USSTree.ts index c53a3b3fd3..ed2d116179 100644 --- a/packages/zowe-explorer/src/uss/USSTree.ts +++ b/packages/zowe-explorer/src/uss/USSTree.ts @@ -80,6 +80,15 @@ export class USSTree extends ZoweTreeProvider implements IZoweTree { + if (contextually.isUssDirectory(e.element)) { + const newIcon = getIconByNode(e.element); + if (newIcon) { + e.element.iconPath = newIcon; + this.mOnDidChangeTreeData.fire(e.element); + } + } + }) } /**