rust-lang / rust-lang/rust-analyzer

more advanced reference queries

Open
#19,452 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature S-unactionable
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.