Skip to content

Commit

Permalink
Removing some unwanted error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmdas committed Dec 16, 2024
1 parent dfb0c6d commit a03249b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/vsce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to the "cics-extension-for-zowe" extension will be documente

## Recent Changes

- BugFix: Initializing new Team Configuration File. [#166](https://github.com/zowe/cics-for-zowe-client/pull/166)
- BugFix: Initializing new Team Configuration File. [#33](https://github.com/zowe/cics-for-zowe-client/issues/33)

## `3.0.2`

Expand Down
10 changes: 3 additions & 7 deletions packages/vsce/src/trees/CICSTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
// No cics profiles needed beforhand for team config method
if (configInstance.getTeamConfig().exists || allCICSProfileNames.length > 0) {
const profileNameToLoad = await window.showQuickPick(
[{ label: "\uFF0B Edit CICS Profile..." }].concat(
[{ label: "\u270F Edit Team Configuration File" }].concat(
allCICSProfileNames
.filter((name) => {
for (const loadedProfile of this.loadedProfiles) {
Expand All @@ -104,17 +104,14 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
),
{
ignoreFocusOut: true,
placeHolder: "Load Profile or Create New Profile",
placeHolder: "Edit Team Configuration File",
}
);
if (profileNameToLoad) {
// If Create New CICS Profile option chosen
if (profileNameToLoad.label.includes("\uFF0B")) {
if (profileNameToLoad.label.includes("\u270F")) {
// get all profiles of all types including zosmf
const profiles = configInstance.getAllProfiles();
if (!profiles.length) {
window.showErrorMessage("No profiles found in config file. Please update Team Configuration file.");
}
const currentProfile =
profiles.length > 0 ? await ProfileManagement.getProfilesCache().getProfileFromConfig(profiles[0].profName) : null;
const filePath =
Expand All @@ -139,7 +136,6 @@ export class CICSTree implements TreeDataProvider<CICSSessionTree> {
}
}
} else {
window.showInformationMessage("No profiles found in config file. Please update Team Configuration file.");
// Create New Profile Form should appear
this.createNewProfile();
}
Expand Down

0 comments on commit a03249b

Please sign in to comment.