Skip to content

Commit

Permalink
Adress fernando's comments
Browse files Browse the repository at this point in the history
Signed-off-by: likhithanimma1 <[email protected]>
  • Loading branch information
likhithanimma1 committed Jan 16, 2025
1 parent 16ee193 commit 2b59528
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export namespace MainframeInteraction {
* Copies a dataSet to cross Lpar
*
*/
copyDataSetCrossLpar(
copyDataSetCrossLpar?(
toDataSetName: string,
toMemberName: string,
options: zosfiles.ICrossLparCopyDatasetOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export namespace ZoweExplorerZosmf {
this.getSession(sourceprofile),
{ dsn: toDataSetName, member: toMemberName },
options,
{ volume: undefined },
{},
this.getSession()
);
}
Expand Down
6 changes: 5 additions & 1 deletion packages/zowe-explorer/src/trees/dataset/DatasetActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,6 @@ export class DatasetActions {
const element = await DatasetUtils.getNodeLabels(el);
filePaths.push(element);
}
filePaths.flat();
return vscode.env.clipboard.writeText(JSON.stringify(filePaths.length > 1 ? filePaths : filePaths[0]));
}

Expand Down Expand Up @@ -1558,10 +1557,15 @@ export class DatasetActions {
}
const replace = await DatasetActions.determineReplacement(node.getProfile(), dsname, "ps");
if (replace !== "cancel") {
// const attributes = await ZoweExplorerApiRegister.getMvsApi(profile).dataSet(content.dataSetName, {
// attributes: true,
// });
// console.log("Response", attributes.apiResponse.items[0].spacu);
const options: zosfiles.ICrossLparCopyDatasetOptions = {
"from-dataset": { dsn: content.dataSetName, member: undefined },
responseTimeout: node.getProfile()?.profile?.responseTimeout,
replace: replace === "replace" ? true : false,
// targetStorageClass: attributes.apiResponse.items[0].spacu,
};
if (token.isCancellationRequested) {
Gui.showMessage(DatasetActions.localizedStrings.opCancelled);
Expand Down

0 comments on commit 2b59528

Please sign in to comment.