From a03249b7a86c3eb4b00eeb9d52e630dc63198c20 Mon Sep 17 00:00:00 2001 From: Chinmay Das Date: Mon, 16 Dec 2024 18:47:11 +0530 Subject: [PATCH] Removing some unwanted error messages --- packages/vsce/CHANGELOG.md | 2 +- packages/vsce/src/trees/CICSTree.ts | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/vsce/CHANGELOG.md b/packages/vsce/CHANGELOG.md index ed4a7442..9d2d88d9 100644 --- a/packages/vsce/CHANGELOG.md +++ b/packages/vsce/CHANGELOG.md @@ -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` diff --git a/packages/vsce/src/trees/CICSTree.ts b/packages/vsce/src/trees/CICSTree.ts index 860855dd..8bc4a7f1 100644 --- a/packages/vsce/src/trees/CICSTree.ts +++ b/packages/vsce/src/trees/CICSTree.ts @@ -88,7 +88,7 @@ export class CICSTree implements TreeDataProvider { // 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) { @@ -104,17 +104,14 @@ export class CICSTree implements TreeDataProvider { ), { 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 = @@ -139,7 +136,6 @@ export class CICSTree implements TreeDataProvider { } } } else { - window.showInformationMessage("No profiles found in config file. Please update Team Configuration file."); // Create New Profile Form should appear this.createNewProfile(); }