Skip to content

fix(health): quiet checkhealth for unused VCS tools and optional icons - #319

Merged
dlyongemallo merged 1 commit into
mainfrom
316-checkhealth
Sep 6, 2026
Merged

fix(health): quiet checkhealth for unused VCS tools and optional icons#319
dlyongemallo merged 1 commit into
mainfrom
316-checkhealth

Conversation

@dlyongemallo

Copy link
Copy Markdown
Owner

Relates to #316.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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_deps list (with essential/optional handling) with icon_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_list helper and the missing_essential gating.
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.

@dlyongemallo
dlyongemallo merged commit 4e3a2f2 into main Sep 6, 2026
9 checks passed
@dlyongemallo
dlyongemallo deleted the 316-checkhealth branch September 6, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants