rust-lang / rust-lang/rust-analyzer

Add Horizontal Scrollbar to Memory Layout Viewer

Open
#15,255 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I tried out this feature that was added in #189 and it's really cool. However, I noticed that it doesn't have the ability to horizontally scroll, which becomes an issue when you have structs of structs of structs and the final primitives are many levels deep. This already comes up in the default "open as second pane" when looking at a struct with a String field; the final *const u8 is off screen. With a deeper nesting I could have components offscreen even with full window width.

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

No file or test is named. Start by locating the memory layout viewer feature added in issue #189 and reproduce the default “open as second pane” view with a struct containing a String field. Done means deeply nested layout content, including the final *const u8, can be reached with horizontal scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.