Skip to content

feat: client-side for trace search - #658

Merged
mhuisi merged 3 commits into
masterfrom
mhuisi/trace-search
Sep 17, 2025
Merged

mhuisi merged 3 commits into
masterfrom
mhuisi/trace-search

Conversation

@mhuisi

@mhuisi mhuisi commented Sep 12, 2025 •

Copy link
Copy Markdown
Collaborator

This PR implements the client-side for a new trace search mechanism in the InfoView.

Demo:
Search demo

@mhuisi
mhuisi merged commit 9c78906 into master Sep 17, 2025
mhuisi added a commit that referenced this pull request Sep 30, 2025
This PR fixes a bug where the InfoView would sometimes display stale
messages.

The cause of this issue is the introduction of an additional state
variable for the message in #658 and the use of an inadequate key in
#464.
@mhuisi
mhuisi deleted the mhuisi/trace-search branch October 21, 2025 12:37
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.
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