rust-lang / rust-lang/rust-analyzer

Feature request: Display project files in a logical order.

Open
#13,127 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-vscode S-unactionable
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

This was reported in https://github.com/microsoft/vscode/issues/95239 before and got closed. But i do feel this is especially important for the rust community. Basically i'm hoping vscode can list the files in this order:

  • lib.rs
  • z_but_first_module.rs
  • z_but_first_module/ (directory)
  • s_but_second_module.rs
  • s_but_second_module/ (directory)
  • a_but_third_module.rs

instead of the alphabetic order. I hope Rust community can weigh in towards this direction, and improve it eventually.

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 earlier report at microsoft/vscode#95239 and determine whether rust-analyzer exposes an entry point for project file ordering. Done means establishing whether the requested Rust module ordering can be supported and documenting the resulting behavior or scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.