-
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
Provide API for registering callback upon watcher triggered for exten… #2397
Conversation
…ders Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2397 +/- ##
==========================================
- Coverage 92.62% 92.62% -0.01%
==========================================
Files 98 98
Lines 9414 9425 +11
Branches 1951 1952 +1
==========================================
+ Hits 8720 8730 +10
- Misses 693 694 +1
Partials 1 1
☔ View full report in Codecov by Sentry. |
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation LGTM 😅 just had a couple comments regarding choice of function type. And I think it would be best to expose EVENT_TYPES
to extenders, so I mentioned that below 👍
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Thanks for the suggestions @traeok it should be ready for review now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find any issues with this behavior in the FTP extension 🥳
LGTM! 😋
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
packages/zowe-explorer/__tests__/__unit__/api/ZoweExplorerApiRegister.unit.test.ts
Fixed
Show fixed
Hide fixed
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😋
tested with this PR
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Verified that events are being fired from extenders that implement IApiRegisterClient
. Thanks for this enhancement and for updating to use vscode.Event
@rudyflores 😁
Solves #2385
Proposed changes
Added API for allowing extenders to register their own callback or set of actions to be performed upon the watcher being triggered (create, update, delete) in order to have a way to notify extenders on any real time changes made to a Zowe team config profile.
Release Notes
Milestone: 2.10.0
Changelog: Added API for registering callback function to execute upon triggering the watcher for team config profiles.
Types of changes
What types of changes does your code introduce to Zowe Explorer?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the revieweryarn workspace vscode-extension-for-zowe vscode:prepublish
has been executedFurther comments