mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #795] feat(diff): add public isHighlighting getter to DiffRenderable #1569
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1569
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/795
Author: @remorses
Created: 3/8/2026
Status: 🔄 Open
Base:
main← Head:add-diff-is-highlighting📝 Commits (2)
fddb2d1feat(diff): add public isHighlighting getter to DiffRenderable13db7b7Update Diff.ts📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
packages/core/src/renderables/Diff.ts(+6 -0)📄 Description
Adds a public
isHighlightinggetter toDiffRenderablethat returnstruewhen tree-sitter syntax highlighting is in progress on either side of the diff.This enables consumers like test renderers and batch HTML generators to wait for highlighting deterministically — check
diffRenderable.isHighlightingin a loop instead of pollingrequestRenderwith arbitrary timeouts.The getter delegates to
CodeRenderable.isHighlightingon both left and right code renderables, which is already tracked internally by_waitingForHighlight+handleLineInfoChange.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.