-
Notifications
You must be signed in to change notification settings - Fork 722
Implement plugin loading callbacks and tracking for installed plugins #1558
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
base: main
Are you sure you want to change the base?
Conversation
…lugins Signed-off-by: 7HR4IZ3 <[email protected]>
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.
Looks good but make sure to handle failed or broken plugin cases
For formatting run : pnpm run check
|
? |
…tracking Signed-off-by: 7HR4IZ3 <[email protected]>
Signed-off-by: 7HR4IZ3 <[email protected]>
|
Sorry about the late reply, forgot about this (wanted to use this feature in a plugin but I found a workaround) Updated the code, and ran the linter |
…INS set Signed-off-by: 7HR4IZ3 <[email protected]>
|
/gemini review |
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.
Code Review
This pull request introduces a more robust plugin loading system with callbacks, tracking for installed and broken plugins, and loading timeouts. These are excellent additions that will improve the stability and user experience of the plugin system. I've identified one high-severity issue related to a potential memory leak in the plugin watcher cleanup and one medium-severity issue where code can be simplified. Overall, this is a valuable enhancement.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…watchers on failure Signed-off-by: 7HR4IZ3 <[email protected]>
Introduce callbacks for plugin loading and completion, along with a mechanism to track installed plugins. This enhances the plugin management system by allowing asynchronous handling of plugin states.