Skip to content

Commit

Permalink
clean up of comments
Browse files Browse the repository at this point in the history
Signed-off-by: Billie Simmons <[email protected]>
  • Loading branch information
JillieBeanSim committed Feb 17, 2025
1 parent 409ed07 commit 0b79e6c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/zowe-explorer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/zowe-explorer/src/trees/uss/USSAttributeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export function App() {
}
};

const refreshAttributes = () => {
vscodeApi.postMessage({ command: "refresh" });
};

const applyAttributes = () => {
setIsUpdating(true);
if (attributes.current) {
Expand Down Expand Up @@ -177,7 +173,7 @@ export function App() {
{l10n.t("Last refreshed:")} {timestamp.toLocaleString(navigator.language)}
</p>
)}
<VSCodeButton appearance="secondary" onClick={() => refreshAttributes()}>
<VSCodeButton appearance="secondary" onClick={() => vscodeApi.postMessage({ command: "refresh" })}>
<span style={{ marginRight: "0.5em" }}></span>
{l10n.t("Refresh")}
</VSCodeButton>
Expand Down

0 comments on commit 0b79e6c

Please sign in to comment.