-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Fix Plugin Manager Issue #3365
base: dev
Are you sure you want to change the base?
Fix Plugin Manager Issue #3365
Conversation
🥷 Code experts: onesounds Jack251970, onesounds have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. If the flagged items are 🤯 false positivesIf items relate to a ...
|
📝 WalkthroughWalkthroughThis pull request adjusts the application’s startup sequence and event registration. In the application’s main startup file, the plugin loading is moved to the beginning and followed by explicit registration of the Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant PluginManager
participant MainViewModel
App->>PluginManager: LoadPlugins(_settings.PluginSettings)
PluginManager-->>App: Plugins Loaded
App->>MainViewModel: RegisterResultsUpdatedEvent()
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@@ -213,7 +212,7 @@ void continueAction(Task t) | |||
} | |||
} | |||
|
|||
private void RegisterResultsUpdatedEvent() | |||
public void RegisterResultsUpdatedEvent() |
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.
actually maybe we can move this to PluginManager?
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.
okay
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.
oh we cannot do that. since PluginManager
is in core project, it cannot access function in main project (MainViewModel.RegisterResultsUpdatedEvent)
When we call other functions that need
AllPlugins
, we should put them afterPluginManager.LoadPlugins(_settings.PluginSettings);
.MainViewModel
is brought forward becausePublicAPIInstance
needs its instance, so we cannot putRegisterResultsUpdatedEvent()
in its constructor.Ioc.Default.GetRequiredService<Internationalization>().ChangeLanguage(_settings.Language);
needs to check plugins withIPluginI18n
interface, it should be put afterIoc.Default.GetRequiredService<MainViewModel>().RegisterResultsUpdatedEvent();