Skip to content

Commit

Permalink
Merge pull request #1213 from zowe/fix-ctrl-alt-p
Browse files Browse the repository at this point in the history
Issue #992: File picker doesn't work
  • Loading branch information
jellypuno authored Mar 3, 2021
2 parents b287a02 + 1e7171a commit 96964f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zowe-explorer/src/shared/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function searchInAllLoadedItems(

let qpItem: vscode.QuickPickItem;
for (const item of items) {
if (item.constructor.name === "ZoweDatasetNode") {
if (contextually.isDs(item) || contextually.isPdsNotFav(item) || contextually.isVsam(item)) {
if (contextually.isDsMember(item)) {
qpItem = new FilterItem(
`[${item.getSessionNode().label.trim()}]: ${item.getParent().label.trim()}(${item.label.trim()})`,
Expand All @@ -78,7 +78,7 @@ export async function searchInAllLoadedItems(
qpItem = new FilterItem(`[${item.getSessionNode().label.trim()}]: ${item.label.trim()}`, "Data Set");
}
qpItems.push(qpItem);
} else if (item.constructor.name === "ZoweUSSNode") {
} else if (contextually.isUssDirectory(item) || contextually.isText(item) || contextually.isBinary(item)) {
const filterItem = `[${item.getProfileName().trim()}]: ${item.getParent().fullPath}/${item.label.trim()}`;
qpItem = new FilterItem(filterItem, "USS");
qpItems.push(qpItem);
Expand Down

0 comments on commit 96964f6

Please sign in to comment.