Skip to content

fix(syntax): restart long passes when a grammar arrives mid-pass - #73

Merged
seatedro merged 1 commit into
masterfrom
rohit/syntax-retry-yielded
Nov 3, 2026
Merged

seatedro merged 1 commit into
masterfrom
rohit/syntax-retry-yielded

Conversation

@seatedro

@seatedro seatedro commented Nov 3, 2026

Copy link
Copy Markdown
Owner

In a long file still streaming its highlight, the windows colored before an embedded grammar (such as HTML in a template) finished downloading kept the host language's colors for good, while the file reported it was done: the worker's retry only reran parked jobs and missed a pass waiting for its next turn. A retry now restarts such a pass from the first window, and a pass that starts over no longer inherits the previous pass's missing languages, which had made a recolored file park again and re-highlight every window on each later grammar arrival.

A grammar arriving reran only the parked jobs. A long highlight that had
yielded waited in the queue instead, so the retry missed it: its later
windows used the new grammar, but the windows colored before it arrived
kept the host's colors for good, while the side reported it was done.

On a retry, a yielded pass that was missing grammars now starts over
from the first window. A pass from the start also stops inheriting the
missing languages of the pass before it, which made a recolored file
park again and redo every window on each later grammar arrival.
@seatedro seatedro closed this Nov 3, 2026
@seatedro seatedro reopened this Nov 3, 2026
@seatedro
seatedro enabled auto-merge November 3, 2026 12:44
@seatedro
seatedro merged commit 20d9fed into master Nov 3, 2026
14 of 16 checks passed
@seatedro
seatedro deleted the rohit/syntax-retry-yielded branch November 3, 2026 13:05
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.

1 participant