Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into awharn/job-spool-enco…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
awharn committed Dec 12, 2024
2 parents 24279c2 + b6dd3b5 commit b0512af
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen
- 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 listing data sets resulted in an error after opening a data set with an encoding. [#3347](https://github.com/zowe/zowe-explorer-vscode/issues/3347)
- 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)

## `3.0.3`

Expand Down
4 changes: 4 additions & 0 deletions packages/zowe-explorer/__tests__/__mocks__/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,10 @@ export class Disposable {
* @param callOnDispose Function that disposes something.
*/
constructor() {}
/**
* Dispose this object.
*/
public dispose(): any {}
}

export function RelativePattern(base: string, pattern: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { SharedContext } from "../../../../src/trees/shared/SharedContext";
import { USSInit } from "../../../../src/trees/uss/USSInit";
import { SharedActions } from "../../../../src/trees/shared/SharedActions";
import { SharedInit } from "../../../../src/trees/shared/SharedInit";
import { Gui } from "@zowe/zowe-explorer-api";

describe("Test src/uss/extension", () => {
describe("initUSSProvider", () => {
Expand All @@ -26,6 +27,7 @@ describe("Test src/uss/extension", () => {
context: { subscriptions: new Array() },
value: { test: "uss", refreshUSS: jest.fn(), openUSS: jest.fn(), deleteUSSNode: jest.fn(), getUSSDocumentFilePath: jest.fn() },
_: { _: "_" },
statusMsg: { dispose: jest.fn() },
};
const ussFileProvider: { [key: string]: jest.Mock } = {
createZoweSession: jest.fn(),
Expand All @@ -52,6 +54,8 @@ describe("Test src/uss/extension", () => {
mock: [
{ spy: jest.spyOn(SharedContext, "isDocument"), arg: [test.value], ret: true },
{ spy: jest.spyOn(SharedContext, "isUssDirectory"), arg: [test.value], ret: false },
{ spy: jest.spyOn(Gui, "setStatusBarMessage"), arg: ["$(sync~spin) Pulling from Mainframe..."], ret: test.statusMsg },
{ spy: jest.spyOn(test.statusMsg, "dispose"), arg: [] },
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions packages/zowe-explorer/src/trees/uss/USSInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class USSInit {
vscode.commands.registerCommand("zowe.uss.refreshUSS", async (node, nodeList) => {
const statusMsg = Gui.setStatusBarMessage(`$(sync~spin) ${vscode.l10n.t("Pulling from Mainframe...")}`);
let selectedNodes = SharedUtils.getSelectedNodeList(node, nodeList) as IZoweUSSTreeNode[];
selectedNodes = selectedNodes.filter((x) => SharedContext.isDocument(x));
selectedNodes = selectedNodes.filter((x) => SharedContext.isDocument(x) || SharedContext.isBinary(node));
for (const item of selectedNodes) {
if (SharedContext.isUssDirectory(item)) {
// just refresh item to grab latest files
Expand All @@ -71,8 +71,8 @@ export class USSInit {
});
statusMsg2.dispose();
}
statusMsg.dispose();
}
statusMsg.dispose();
})
);
context.subscriptions.push(
Expand Down

0 comments on commit b0512af

Please sign in to comment.