Skip to content

Commit

Permalink
Fixing Lint Issues
Browse files Browse the repository at this point in the history
Signed-off-by: Chinmay Das <[email protected]>
  • Loading branch information
chinmdas authored Dec 15, 2024
1 parent 6cd2269 commit 1f0ceff
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions packages/vsce/src/trees/CICSTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
const currentProfile =
profiles.length > 0 ? await ProfileManagement.getProfilesCache().getProfileFromConfig(profiles[0].profName) : null;
const filePath =
currentProfile === null
? configInstance.getTeamConfig().opts.homeDir + "/zowe.config.json"
currentProfile === null
? configInstance.getTeamConfig().opts.homeDir + "/zowe.config.json"

Check failure on line 122 in packages/vsce/src/trees/CICSTree.ts

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 20 spaces but found 18
: (currentProfile?.profLoc.osLoc?.[0] ?? "");
await openConfigFile(filePath);
} else {
Expand Down Expand Up @@ -485,11 +485,11 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
} else {
// Initialize new team configuration file
const response = await window.showQuickPick([{ label: "\uFF0B Create a New Team Configuration File" }], {
ignoreFocusOut: true,
placeHolder: "Create a New Team Configuration File",
ignoreFocusOut: true,
placeHolder: "Create a New Team Configuration File",
});
if (response) {
commands.executeCommand("zowe.all.config.init");
commands.executeCommand("zowe.all.config.init");
}
}
}
Expand Down Expand Up @@ -559,24 +559,24 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
}
}

async updateSession(session: CICSSessionTree) {
await ProfileManagement.profilesCacheRefresh();
const profileCache = await ProfileManagement.getProfilesCache();
const profileToUpdate = profileCache.loadNamedProfile(session.label?.toString()!, "cics");
const currentProfile = await profileCache.getProfileFromConfig(profileToUpdate.name);
await this.updateSessionHelper(currentProfile);
}
async updateSession(session: CICSSessionTree) {
await ProfileManagement.profilesCacheRefresh();
const profileCache = await ProfileManagement.getProfilesCache();
const profileToUpdate = profileCache.loadNamedProfile(session.label?.toString()!, "cics");
const currentProfile = await profileCache.getProfileFromConfig(profileToUpdate.name);
await this.updateSessionHelper(currentProfile);
}

async updateSessionHelper(profile?: imperative.IProfAttrs) {
const response = await window.showQuickPick([{ label: "Edit CICS Profile" }], {
ignoreFocusOut: true,
placeHolder: "Create a New Team Configuration File",
});
if (response) {
const filePath = profile?.profLoc.osLoc?.[0] ?? "";
await openConfigFile(filePath);
}
async updateSessionHelper(profile?: imperative.IProfAttrs) {
const response = await window.showQuickPick([{ label: "Edit CICS Profile" }], {
ignoreFocusOut: true,
placeHolder: "Create a New Team Configuration File",
});
if (response) {
const filePath = profile?.profLoc.osLoc?.[0] ?? "";
await openConfigFile(filePath);
}
}

getTreeItem(element: CICSSessionTree): TreeItem | Thenable<TreeItem> {
return element;
Expand Down

0 comments on commit 1f0ceff

Please sign in to comment.