-
-
Notifications
You must be signed in to change notification settings - Fork 446
Improve FL Exiting & Exception Handler #3456
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
Conversation
🚨 Warning: Approaching Monthly Automation Limit Monthly PRs automated: 234/250 Your organization has used over 90% of its monthly quota for gitStream automations. Once the quota is reached, new pull requests for this month will not trigger gitStream automations and will be marked as “Skipped”. To avoid interruptions, consider optimizing your automation usage or upgrading your plan by contacting LinearB. |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
This comment has been minimized.
This comment has been minimized.
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.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
Flow.Launcher/Core/Resource/Internationalization.cs:260
- Using 'return' in the foreach loop may exit the method prematurely instead of skipping a single plugin. Consider replacing 'return' with 'continue' to process all plugins.
if (p.Plugin is not IPluginI18n pluginI18N) return;
🥷 Code experts: no user but you matched threshold 10 Jack251970 has 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:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
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. |
Co-authored-by: Copilot <[email protected]>
📝 WalkthroughWalkthroughThis pull request introduces a series of modifications across several components. In the plugin management code, error handling is enhanced with added try-catch blocks, and some fields are marked as readonly to prevent reassignment. Several methods have been refactored to use modern C# syntax, including shorthand initializers and the range operator for string manipulation. The PR also refactors dependency usage in the Public API class and improves the shutdown process by updating control flow in the main window. Additionally, it adds new logic to handle unobserved task exceptions via the application’s task scheduler. Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant TaskScheduler
participant ErrorReporting
App->>TaskScheduler: RegisterTaskSchedulerUnhandledException()
Note right of App: Registered in RELEASE builds
TaskScheduler-->>ErrorReporting: OnUnobservedTaskException event
ErrorReporting->>App: TaskSchedulerUnobservedTaskException invoked
Assessment against linked issues
Suggested labels
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
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 (
|
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: s.b. workaround(s)
If the flagged items are 🤯 false positivesIf items relate to a ...
|
I think it is good to go |
Use try-catch to call plugin Save & Dispose method so that Application can exit normally even plugins have exceptions
Tested. When plugin throw exception during saving & disposing, the application can exit normally.
Fix storage DirectoryPath issue
Make
DirectoryPath
is not null. Follow on with #3452.Support TaskScheduler.UnobservedTaskException handler
Fix #3453.