rust-lang / rust-lang/rust-analyzer

Enable feature based on the position of the cursor

Open
#16,083 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Instead of defining "rust-analyzer.cargo.features": ["my_feature"] each time we want auto-completion for a specific feature, it would be nice if rust-analyzer could determine if we are in a part of code which require a feature being enabled (or not)

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

The issue names only the rust-analyzer.cargo.features setting, cursor position, and auto-completion; no file, test, or entry point is provided. Begin by locating the setting and completion flow, then establish how feature requirements are identified from the cursor context and what completion behavior counts as done.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience, devtools
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.