Skip to content

Commit

Permalink
Merge pull request #127 from zowe/log-instead-of-popup
Browse files Browse the repository at this point in the history
Log during activation instead of showing popup
  • Loading branch information
zFernand0 authored Jun 20, 2024
2 parents aeee0bd + 936b623 commit 49aadd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vsce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the "cics-extension-for-zowe" extension will be documente
## `2.3.6`

- BugFix: Fixed several identified problems with possible null values in the tree and web views. [#121](https://github.com/zowe/cics-for-zowe-client/issues/121)
- Moved the popup from activation `Zowe Explorer was modified for the CICS Extension.` to the logger instead.

## `2.3.5`

Expand Down
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 49aadd9

Please sign in to comment.