rust-lang / rust-lang/rust-analyzer
more advanced reference queries
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
This would be an LSP extension, of course.
Rustdoc allows for really nice queries, like -> MyTy that returns all functions that return that type.
I'd love to have that in my editor, I could configure it so that I can see all functions that return this type with a click.
Likewise for all functions that take this as an argument, etc.
Rustdoc seems to have a DSL for this, could r-a have a similar thing?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Rustdoc query DSL described in the issue and how an LSP extension could expose equivalent reference queries in an editor. Define the supported query forms, such as return-type and argument-type searches, and clarify the expected editor interaction before identifying implementation and testing entry points.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools, search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100