Skip to content

Commit

Permalink
show library datasets under correct library name
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Twydell <[email protected]>
  • Loading branch information
AndrewTwydell committed Jan 27, 2025
1 parent 5049eeb commit 2ba9565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/vsce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the "cics-extension-for-zowe" extension will be documente
## Recent Changes

- Updated status icons for local transactions, local files, tasks and programs. [#203](https://github.com/zowe/cics-for-zowe-client/issues/203)
- BugFix: Display correct LibraryDatasets under the Library resource trees. [#212](https://github.com/zowe/cics-for-zowe-client/issues/212)

## `3.3.0`

Expand Down
5 changes: 2 additions & 3 deletions packages/vsce/src/trees/treeItems/CICSLibraryTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { TreeItemCollapsibleState, TreeItem, window } from "vscode";
import { CICSRegionTree } from "../CICSRegionTree";
import { getResource } from "@zowe/cics-for-zowe-sdk";
import { CICSLibraryDatasets } from "./CICSLibraryDatasets";
import { toEscapedCriteriaString } from "../../utils/filterUtils";
import { getFolderIcon } from "../../utils/iconUtils";
import { toArray } from "../../utils/commandUtils";

Expand Down Expand Up @@ -47,11 +46,11 @@ export class CICSLibraryTreeItem extends TreeItem {
}

public async loadContents() {
const defaultCriteria = "(DSNAME=*)";
const defaultCriteria = `(LIBRARY=${this.library.name})`;
let criteria;

if (this.activeFilter) {
criteria = toEscapedCriteriaString(this.activeFilter, "DSNAME");
criteria = `(LIBRARY=${this.library.name} AND DSNAME=${this.activeFilter})`;
} else {
criteria = defaultCriteria;
}
Expand Down

0 comments on commit 2ba9565

Please sign in to comment.