Skip to content

Commit

Permalink
Signed-off-by: likhithanimma1 <Likhitha.Nimma@ibm.com>
Browse files Browse the repository at this point in the history
Linting changes fixed.
  • Loading branch information
likhithanimma1 committed Sep 7, 2023
1 parent 25a22f7 commit 36d3ee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen

- Added option to save unique data set attributes as a template after allocation for future use. [#1425](https://github.com/zowe/vscode-extension-for-zowe/issues/1425)
- Added "Cancel Job" feature for job nodes in Jobs tree view. [#2251](https://github.com/zowe/vscode-extension-for-zowe/issues/2251)
- Added "Sort Jobs" feature for job nodes in Jobs tree view. [#2257](https://github.com/zowe/vscode-extension-for-zowe/issues/2251)
- Enhanced ID generation for parent tree nodes to ensure uniqueness.
- Added support for custom credential manager extensions in Zowe Explorer [#2212](https://github.com/zowe/vscode-extension-for-zowe/issues/2212)

Expand Down
8 changes: 4 additions & 4 deletions packages/zowe-explorer/src/job/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ZoweExplorerApiRegister } from "../ZoweExplorerApiRegister";
import { Gui, ValidProfileEnum, IZoweTree, IZoweJobTreeNode } from "@zowe/zowe-explorer-api";
import { Job, Spool } from "./ZoweJobNode";
import * as nls from "vscode-nls";
import SpoolProvider, { encodeJobFile, getSpoolFiles, matchSpool } from "../SpoolProvider";
import SpoolProvider, { encodeJobFile, getSpoolFiles, matchSpool } from "../SpoolProvider";
import { ZoweLogger } from "../utils/LoggerUtils";
import { getDefaultUri, jobStringValidator } from "../shared/utils";

Expand Down Expand Up @@ -536,7 +536,7 @@ export async function cancelJobs(jobsProvider: IZoweTree<IZoweJobTreeNode>, node
}
export async function sortByName(jobs: IZoweJobTreeNode, jobsProvider: IZoweTree<IZoweJobTreeNode>): Promise<void> {
if (jobs["children"].length == 0) {
vscode.window.showInformationMessage("No jobs are present in the profile.");
await vscode.window.showInformationMessage("No jobs are present in the profile.");
}
jobs["children"].sort((x, y) => {
if (x["job"]["jobname"] === y["job"]["jobname"]) return x["job"]["jobid"] > y["job"]["jobid"] ? 1 : -1;
Expand All @@ -546,14 +546,14 @@ export async function sortByName(jobs: IZoweJobTreeNode, jobsProvider: IZoweTree
}
export async function sortById(jobs: IZoweJobTreeNode, jobsProvider: IZoweTree<IZoweJobTreeNode>): Promise<void> {
if (jobs["children"].length == 0) {
vscode.window.showInformationMessage("No jobs are present in the profile.");
await vscode.window.showInformationMessage("No jobs are present in the profile.");
}
jobs["children"].sort((x, y) => (x["job"]["jobid"] > y["job"]["jobid"] ? 1 : -1));
jobsProvider.refresh();
}
export async function sortByReturnCode(jobs: IZoweJobTreeNode, jobsProvider: IZoweTree<IZoweJobTreeNode>): Promise<void> {
if (jobs["children"].length == 0) {
vscode.window.showInformationMessage("No jobs are present in the profile.");
await vscode.window.showInformationMessage("No jobs are present in the profile.");
}
jobs["children"].sort((x, y) => {
if (x["job"]["retcode"] === y["job"]["retcode"]) return x["job"]["jobid"] > y["job"]["jobid"] ? 1 : -1;
Expand Down

0 comments on commit 36d3ee9

Please sign in to comment.