Skip to content

Commit

Permalink
Log during activation instead of showing popup
Browse files Browse the repository at this point in the history
Signed-off-by: Rudy Flores <[email protected]>
  • Loading branch information
rudyflores committed May 8, 2024
1 parent aeee0bd commit eade23d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vsce/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import { getZoweExplorerVersion } from "./utils/workspaceUtils";
import { getInquireTransactionCommand } from "./commands/inquireTransaction";
import { getPurgeTaskCommand } from "./commands/purgeTaskCommand";
import { getInquireProgramCommand } from "./commands/inquireProgram";
import { Logger } from "@zowe/imperative";

/**
* Initialises extension
Expand All @@ -85,6 +86,7 @@ import { getInquireProgramCommand } from "./commands/inquireProgram";
*/
export async function activate(context: ExtensionContext) {
const zeVersion = getZoweExplorerVersion();
const logger = Logger.getAppLogger();
let treeDataProv: CICSTree = null;
if (!zeVersion) {
window.showErrorMessage("Zowe Explorer was not found: Please ensure Zowe Explorer v2.0.0 or higher is installed");
Expand All @@ -105,10 +107,10 @@ export async function activate(context: ExtensionContext) {
await treeDataProv.refreshLoadedProfiles();
});
}
window.showInformationMessage("Zowe Explorer was modified for the CICS Extension.");
logger.debug("Zowe Explorer was modified for the CICS Extension.");
} catch (error) {
console.log(error);
window.showErrorMessage("Zowe Explorer for IBM CICS was not initiliaized correctly");
logger.error("Zowe Explorer for IBM CICS was not initiliaized correctly");
return;
}
} else {
Expand Down

0 comments on commit eade23d

Please sign in to comment.