From 2f0b46b23b61123bcb10f5794583a33b675c7c84 Mon Sep 17 00:00:00 2001 From: Trae Yelovich Date: Thu, 12 Dec 2024 11:10:43 -0500 Subject: [PATCH] fix: support Pull from Mainframe for binary files Signed-off-by: Trae Yelovich --- packages/zowe-explorer/CHANGELOG.md | 1 + packages/zowe-explorer/src/uss/init.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/zowe-explorer/CHANGELOG.md b/packages/zowe-explorer/CHANGELOG.md index e53ea6dbf9..ccac14ad1f 100644 --- a/packages/zowe-explorer/CHANGELOG.md +++ b/packages/zowe-explorer/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen - Fixed an issue where a migrated data set is unusable after it is recalled through Zowe Explorer. [#3294](https://github.com/zowe/zowe-explorer-vscode/issues/3294) - Fixed an issue where a recalled PDS is expandable after it is migrated through Zowe Explorer. [#3294](https://github.com/zowe/zowe-explorer-vscode/issues/3294) - Fixed an issue where data set nodes did not update if migrated or recalled outside of Zowe Explorer. [#3294](https://github.com/zowe/zowe-explorer-vscode/issues/3294) +- Fixed an issue where binary USS files were not fetched using the "Pull from Mainframe" context menu option. [#3355](https://github.com/zowe/zowe-explorer-vscode/issues/3355) ## `2.18.0` diff --git a/packages/zowe-explorer/src/uss/init.ts b/packages/zowe-explorer/src/uss/init.ts index 98372c4d73..43ef0763e6 100644 --- a/packages/zowe-explorer/src/uss/init.ts +++ b/packages/zowe-explorer/src/uss/init.ts @@ -66,7 +66,7 @@ export async function initUSSProvider(context: vscode.ExtensionContext): Promise vscode.commands.registerCommand("zowe.uss.refreshUSS", async (node, nodeList) => { const statusMsg = Gui.setStatusBarMessage(localize("uss.refreshUSS", "$(sync~spin) Pulling from Mainframe...")); let selectedNodes = getSelectedNodeList(node, nodeList) as IZoweUSSTreeNode[]; - selectedNodes = selectedNodes.filter((x) => contextuals.isDocument(x)); + selectedNodes = selectedNodes.filter((x) => contextuals.isDocument(x) || contextuals.isBinary(x)); for (const item of selectedNodes) { await item.refreshUSS(); }