-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve diagnostics #20
Conversation
📝 WalkthroughWalkthroughThis pull request revises the validation logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant L as LocalizeSourceGenerator
participant PC as PluginClasses
participant D as Diagnostics
Note over L: Start GetValidPluginInfo
L->>PC: Filter for non-null IPluginI18n implementations (iPluginI18nClasses)
alt No valid IPluginI18n classes
L->>D: Report missing IPluginI18n diagnostic
else Valid IPluginI18n classes found
L->>PC: Further filter for valid context properties (iPluginI18nClassesWithContext)
alt No classes with valid context properties
L->>D: Report diagnostic for each missing context property
else Valid classes with context found
L->>PC: Validate each class for static/private/protected property issues
L->>D: Report relevant diagnostics if issues found
end
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 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 (
|
Flow.Launcher.Localization.SourceGenerators/SourceGeneratorDiagnostics.cs
Outdated
Show resolved
Hide resolved
This reverts commit 43d8fe1.
1. Support CouldNotFindPluginEntryClass & CouldNotFindContextProperty diagonostics
2. Improve diagnostics display
Use "`" to wrap class & method names to let users know it is from codes.