Repository navigation
feat: server-side for trace search - #10365
Merged
Merged
Conversation
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
Julian
added a commit
to Julian/lean.nvim
that referenced
this pull request
Apr 4, 2026
Implement the client side of leanprover/lean4#10365, matching leanprover/vscode-lean4#658. When the cursor is on a trace diagnostic in the infoview, <LocalLeader>/ prompts for a search query. The server's Lean.Widget.highlightMatches RPC highlights matching text and uncollapses matching traces. An empty query restores the original. New types (HighlightedInteractiveCode, TaggedTextHighlightedMsgEmbed) properly model the server's HighlightedSubexprInfo and HighlightedMsgEmbed without polluting the existing rendering path. The trace rendering logic is extracted into a shared render_trace function parameterized by its recursive renderer.
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.
This PR implements the server-side for a new trace search mechanism in the InfoView.
Demo:
