Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Hide credentialmanager activation
Browse files Browse the repository at this point in the history
Signed-off-by: JeffinSiby <jeffinsiby@gmail.com>
  • Loading branch information
JeffinSiby committed Mar 14, 2022
1 parent 5b18894 commit 3ad94a3
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,39 +48,17 @@ import { getIconPathInResources } from "./utils/profileUtils";
import { plexExpansionHandler } from "./utils/expansionHandler";
import { sessionExpansionHandler } from "./utils/expansionHandler";
import { regionContainerExpansionHandler } from "./utils/expansionHandler";
import { KeytarApi } from "@zowe/zowe-explorer-api";
import { CredentialManagerFactory, Logger } from "@zowe/imperative";
import { isTheia } from "./utils/workspaceUtils";

export async function activate(context: ExtensionContext) {
const log = Logger.getAppLogger();
const keytarApi = new KeytarApi(log);
await keytarApi.activateKeytar(CredentialManagerFactory.initialized,isTheia());
// const log = Logger.getAppLogger();
// const keytarApi = new KeytarApi(log);
// await keytarApi.activateKeytar(CredentialManagerFactory.initialized,isTheia());
if (ProfileManagement.apiDoesExist()) {
try {
await ProfileManagement.registerCICSProfiles();
ProfileManagement.getProfilesCache().registerCustomProfilesType('cics');
await ProfileManagement.getExplorerApis().getExplorerExtenderApi().reloadProfiles();

// /**
// *
// * Testing ProfilesCache config methods
// *
// * */
// const mProfileInfo = new ProfileInfo("zowe", {
// requireKeytar: () => getSecurityModules("keytar", isTheia())!,
// });
//const mProfileInfo = new ProfileInfo("zowe");
// mProfileInfo.readProfilesFromDisk(); // You must call ProfileInfo.readProfilesFromDisk() before calling usingTeamConfig function.
// ProfilesCache.createConfigInstance(mProfileInfo);
// const configInstance = ProfilesCache.getConfigInstance();
// const hmm = configInstance.usingTeamConfig;
// /**
// *
// * End of testing
// *
// * */

window.showInformationMessage(
"Zowe Explorer was modified for the CICS Extension."
);
Expand Down Expand Up @@ -212,7 +190,7 @@ export async function activate(context: ExtensionContext) {
getUpdateSessionCommand(treeDataProv, treeview),
getDeleteSessionCommand(treeDataProv, treeview),

//getRefreshCommand(treeDataProv),
getRefreshCommand(treeDataProv),

getNewCopyCommand(treeDataProv, treeview),
getPhaseInCommand(treeDataProv, treeview),
Expand Down

0 comments on commit 3ad94a3

Please sign in to comment.