-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IApiRegisterClient.onProfilesUpdate() does not work #3078
Comments
bug_recording.mp4screen capture showing how the vscode watchers do get triggered, but not onProfilesUpdate() |
Hi @FrankSu1996, I noticed that the issue description mentions a v3 snapshot for the Zowe Explorer version, but v2.17.0 for Zowe Explorer API - have you encountered this issue when using the same v3 snapshot for both Zowe Explorer and Zowe Explorer API? |
There are alot of breaking changes from v2-v3 which I haven't had time to fix. Some things, like EventTypes seem to be missing altogether when I try v3 pre-release. |
@FrankSu1996 Thanks for the quick response. We'll do some testing with v2 and v3 to make sure For v3, the |
Thanks, as a side note. I noticed zowe/cli is not a dependency anymore for zowe-explorer-api v3. Was this intended? We depend on a method zowe.getImperativeConfig() from zowe/cli when creating team configs. It would be nice if zowe/cli could be kept as a dependency, otherwise we would have to install it ourselves. This might lead to some unintended side effects if our zowe/cli version is different than the ones ZE/api uses. |
Sorry for the delay @FrankSu1996 - this change was intentional and was done in #2730 to avoid pulling in some of the CLI-specific code (that's in the CLI package and unused in ZE API). I do understand your concern regarding the dependency on If you don't mind me asking, what information are you currently leveraging from |
Thanks for the reply. I'm aware I still have access to the imperative namespace. Currently, since our extension adds a new treeview as part of the Zowe Explorer activity bar, we wanted the same functionality to create new zowe team configs when clicking on our "+" button in the treeview, exactly the same as the 3 Zowe Explorer treeviews (Data Sets/USS/Jobs). Since Zowe Explorer does not expose the |
In v3, we no longer use the |
Describe the bug
IApiRegisterClient.onProfilesUpdate() does not work. Our extension uses it currently to detect team config creation/deletion events. We are using our own vscode file watcher to detect change events, because previously onProfilesUpdate() was not robust for changes in the secure properties. I know when we first adopted it, things were working ok. However, currently, using zowe-explorer-api 2.17.0 (also tried with 2.16.0), the event listener barely works. It might detect an event maybe 1/10 times, but mostly will fail to fire for any sort of team config changes. Note that when I test with our own vscode file watcher for the same create/update/delete events, they always fire.
To Reproduce
Expected behavior
onProfilesUpdate() should fire with corresponding event, but doesn't
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: