diff --git a/packages/zowe-explorer/CHANGELOG.md b/packages/zowe-explorer/CHANGELOG.md index 2037208b9f..b2eedcb40c 100644 --- a/packages/zowe-explorer/CHANGELOG.md +++ b/packages/zowe-explorer/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen - Fixed issue where creating a new team configuration file could cause Zowe Explorer to crash, resulting in all sessions disappearing from trees. [#2906](https://github.com/zowe/zowe-explorer-vscode/issues/2906) - Fixed data set not opening when the token has expired. [#3001](https://github.com/zowe/zowe-explorer-vscode/issues/3001) - Fixed JSON errors being ignored when `zowe.config.json` files change on disk and are reloaded. [#3066](https://github.com/zowe/zowe-explorer-vscode/issues/3066) [#3074](https://github.com/zowe/zowe-explorer-vscode/issues/3074) +- Resolved an issue where extender event callbacks were not always fired when the team configuration file was created, updated or deleted. [#3078](https://github.com/zowe/zowe-explorer-vscode/issues/3078) ## `2.17.0` diff --git a/packages/zowe-explorer/src/shared/init.ts b/packages/zowe-explorer/src/shared/init.ts index 948059ee34..e59de77dcb 100644 --- a/packages/zowe-explorer/src/shared/init.ts +++ b/packages/zowe-explorer/src/shared/init.ts @@ -243,14 +243,14 @@ export function watchConfigProfile(context: vscode.ExtensionContext): void { context.subscriptions.push(...watchers); watchers.forEach((watcher) => { - watcher.onDidCreate(async () => { + watcher.onDidCreate(() => { ZoweLogger.info(localize("watchConfigProfile.create", "Team config file created, refreshing Zowe Explorer.")); - await refreshActions.refreshAll(); + void refreshActions.refreshAll(); ZoweExplorerApiRegister.getInstance().onProfilesUpdateEmitter.fire(EventTypes.CREATE); }); - watcher.onDidDelete(async () => { + watcher.onDidDelete(() => { ZoweLogger.info(localize("watchConfigProfile.delete", "Team config file deleted, refreshing Zowe Explorer.")); - await refreshActions.refreshAll(); + void refreshActions.refreshAll(); ZoweExplorerApiRegister.getInstance().onProfilesUpdateEmitter.fire(EventTypes.DELETE); }); watcher.onDidChange(async (uri: vscode.Uri) => { @@ -260,7 +260,7 @@ export function watchConfigProfile(context: vscode.ExtensionContext): void { return; } globals.setSavedProfileContents(newProfileContents); - await refreshActions.refreshAll(); + void refreshActions.refreshAll(); ZoweExplorerApiRegister.getInstance().onProfilesUpdateEmitter.fire(EventTypes.UPDATE); }); });