Skip to content
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

Show diagnostic count #1114

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

erri120
Copy link
Member

@erri120 erri120 commented Mar 21, 2024

Part of #1091.

2024-03-21_11-51-35

@erri120 erri120 added the Epic: Diagnostics This is related to the Diagnostic System label Mar 21, 2024
@erri120 erri120 added this to the v0.4 milestone Mar 21, 2024
@erri120 erri120 requested a review from a team March 21, 2024 10:57
@erri120 erri120 self-assigned this Mar 21, 2024
@erri120 erri120 mentioned this pull request Mar 21, 2024
14 tasks
Copy link
Member

@Sewer56 Sewer56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Small idea, try using C#12 primary constructors for returning the observable (if you can)

public struct DiagnosticCounts(int NumSuggestions, int NumWarnings, int NumCritical)

This may make it easier to work with long term.
Make it readonly/record struct depending on your preference. It's a value type, so it gets copied around, so whatever floats your boat.

@erri120 erri120 merged commit ab1c879 into Nexus-Mods:main Mar 21, 2024
5 checks passed
@erri120 erri120 deleted the feat/count-diagnostics branch March 21, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic: Diagnostics This is related to the Diagnostic System
3 participants