Conversation
ac8bee2 to
e90b537
Compare
…le 3.25 Update ts_export.rs for ts-rs v12 breaking change (decl() now takes &Config). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Start with pre-compiled syntect defaults (~0ms, ~50 common languages) and build the full grammar registry on a background thread. When complete, swap in the new registry and re-detect syntax for all open buffers. Plugin grammar rebuilds also moved off the main thread via AsyncMessage::GrammarRegistryBuilt, with batching to coalesce multiple RegisterGrammar+ReloadGrammars sequences into a single rebuild. Removes UnbuiltGrammarRegistry (no longer needed) and the startup command drain loop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Convert plugin loading from blocking (oneshot recv) to fire-and-forget
so the editor can render its first frame immediately without waiting for
~40 plugins to load sequentially. The plugin thread reports progress via
SetStatus commands ("Loading plugins (X/Y)") and clears the status bar
when done.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…onsiveness Under CPU pressure (e.g., cgroups), terminal.draw() can take 500-800ms wall clock time due to repeated process descheduling. During that time, keyboard events buffer in the kernel. Previously the loop would render after each event, causing N keystrokes to trigger N expensive draws. Restructure the event loop to drain all pending events (non-blocking poll) before drawing a single frame. After each event, recompute_layout_cached() updates the visual layout (view_line_mappings, viewport sync, scroll groups) so subsequent events see correct state — same pattern as macro replay. Only the terminal draw is deferred. Resize events break out of the drain loop immediately since they require a real render to establish new frame dimensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
No description provided.