feat(api): add provider failure summaries #86
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/preview.nvim!86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/provider-failure-summary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Custom providers can parse diagnostics and expose raw output, but they cannot participate in the short failure notification. That makes failure UX harder to extend without pushing format-specific behavior into the compiler.
Solution
Add an optional
failure_summary(result, ctx)provider hook, validate and document it, and route failure notifications through it before falling back to the existing generic and:Preview outputhint path. Add focused config and compiler tests for one-shot and long-running providers, plus fallback behavior when the hook returnsnilor errors.