From 0b79e6c1c1b5a3540689571e9f60a92c985ed4c2 Mon Sep 17 00:00:00 2001 From: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Date: Mon, 17 Feb 2025 16:44:44 -0500 Subject: [PATCH] clean up of comments Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> --- packages/zowe-explorer-api/CHANGELOG.md | 2 +- .../__unit__/trees/uss/USSAttributeView.unit.test.ts | 2 -- packages/zowe-explorer/src/trees/uss/USSAttributeView.ts | 2 -- .../zowe-explorer/src/webviews/src/edit-attributes/App.tsx | 6 +----- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/zowe-explorer-api/CHANGELOG.md b/packages/zowe-explorer-api/CHANGELOG.md index 71590a3a64..50d2aed691 100644 --- a/packages/zowe-explorer-api/CHANGELOG.md +++ b/packages/zowe-explorer-api/CHANGELOG.md @@ -7,7 +7,7 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t ### New features and enhancements - Added new `copyDataSetCrossLpar` API to provide ability to copy/paste data sets across LPARs. [#3012](https://github.com/zowe/zowe-explorer-vscode/issues/3012) -- Added new `fetchAttributes` API to `IZoweUSSTreeNode`. [#3238](https://github.com/zowe/zowe-explorer-vscode/issues/3238) +- Added new `fetchAttributes` API to `IZoweUSSTreeNode` to fetch latest attributes for UNIX files. [#3238](https://github.com/zowe/zowe-explorer-vscode/issues/3238) ### Bug fixes diff --git a/packages/zowe-explorer/__tests__/__unit__/trees/uss/USSAttributeView.unit.test.ts b/packages/zowe-explorer/__tests__/__unit__/trees/uss/USSAttributeView.unit.test.ts index 0b0ee16769..0bac26d5f2 100644 --- a/packages/zowe-explorer/__tests__/__unit__/trees/uss/USSAttributeView.unit.test.ts +++ b/packages/zowe-explorer/__tests__/__unit__/trees/uss/USSAttributeView.unit.test.ts @@ -60,8 +60,6 @@ describe("AttributeView unit tests", () => { node.getParent = jest.fn().mockReturnValueOnce({ label: "parent node" } as IZoweUSSTreeNode); await (view as any).onDidReceiveMessage({ command: "refresh" }); expect(treeProvider.refreshElement).toHaveBeenCalled(); - - // expect(node.onUpdate).toHaveBeenCalledTimes(2); }); it("dispatches node data to webview when 'ready' command is received", async () => { diff --git a/packages/zowe-explorer/src/trees/uss/USSAttributeView.ts b/packages/zowe-explorer/src/trees/uss/USSAttributeView.ts index 4771316653..cf520a8199 100644 --- a/packages/zowe-explorer/src/trees/uss/USSAttributeView.ts +++ b/packages/zowe-explorer/src/trees/uss/USSAttributeView.ts @@ -22,8 +22,6 @@ export class USSAttributeView extends WebView { private readonly ussApi: MainframeInteraction.IUss; private readonly canUpdate: boolean; - // private onUpdateDisposable: Disposable; - public constructor(context: ExtensionContext, treeProvider: Types.IZoweUSSTreeType, node: IZoweUSSTreeNode) { const label = node.label ? `Edit Attributes: ${node.label as string}` : "Edit Attributes"; super(label, "edit-attributes", context, { diff --git a/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx b/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx index 269e5e7b93..5c01400c3f 100644 --- a/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx +++ b/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx @@ -51,10 +51,6 @@ export function App() { } }; - const refreshAttributes = () => { - vscodeApi.postMessage({ command: "refresh" }); - }; - const applyAttributes = () => { setIsUpdating(true); if (attributes.current) { @@ -177,7 +173,7 @@ export function App() { {l10n.t("Last refreshed:")} {timestamp.toLocaleString(navigator.language)}
)} -