fix(health): quiet checkhealth for unused VCS tools and optional icons - #319
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The change is small, self-contained, behaviorally correct, and has no lingering references to the removed symbols.
Pull request overview
This PR reduces :checkhealth diffview noise for users who don't have every optional dependency installed, addressing issue #316. Previously, checkhealth warned about each missing icon plugin and every uninstalled VCS tool (jj, hg, p4). The updated logic treats the two icon plugins as interchangeable alternatives (info-level when none is present) and only surfaces VCS warnings/errors when no supported VCS tool is valid.
Changes:
- Replace the
plugin_depslist (with essential/optional handling) withicon_providers, reporting info instead of a warning when no icon provider is found. - Buffer VCS adapter results into OK/failed buckets and return early once any adapter is valid, so unused VCS tools no longer produce warnings.
- Remove the now-unused
system_listhelper and themissing_essentialgating.
File summaries
| File | Description |
|---|---|
| lua/diffview/health.lua | Rework icon-provider check to info-level and quiet VCS warnings when at least one adapter is valid; remove unused helpers. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #316.