Extract SymbolIndex to project crate for Tree-sitter based symbol search - #45719
Closed
portseif wants to merge 2 commits into
Closed
Extract SymbolIndex to project crate for Tree-sitter based symbol search#45719portseif wants to merge 2 commits into
portseif wants to merge 2 commits into
Conversation
This adds a new `symbol_index` module to the project crate that provides symbol search functionality using Tree-sitter outline extraction. This allows symbol search to work for languages without LSP support. Features: - Global symbol cache keyed by project entity ID - Background indexing with progress tracking - Incremental updates via buffer reparsing and worktree events - Fuzzy search over indexed symbols This is a foundation for integrating Tree-sitter symbols with Project::symbols to provide fallback when LSP is unavailable.
10 tasks
Collaborator
|
I am open to this change. My requirements:
|
maxbrunsfeld
requested changes
Jan 5, 2026
maxbrunsfeld
left a comment
Collaborator
There was a problem hiding this comment.
Left my changes in the comment above.
Collaborator
|
I'm going to close this out for now. Feel free to open a new PR if you want to keep working toward addressing the feedback. Thank you! |
This was referenced Jul 29, 2026
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.
Summary
Extracts the symbol indexing functionality from Search Everywhere into a reusable
symbol_indexmodule in the project crate. This enables Tree-sitter based symbol search for languages that don't have LSP support.Key changes:
symbol_index.rsmodule incrates/project/SymbolIndexstruct with cached symbols per projectsearch()function for fuzzy matching symbolsThis is a foundational piece that can be used by Search Everywhere and potentially other features that need project-wide symbol access.
Test plan
./script/clippy -p project)