rust-lang / rust-lang/rust-analyzer

[vscode] text wrapping for run/debug test buttons

Open
#13,906 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

I'm using the rstest library to generate parametrized test cases.
The run/debug test buttons are generated, but they don't wrap at viewport width, and a scrollbar is not shown either:

vscode-ra-fs8

Here we can see that the run/debug buttons for the last two test cases are cut.
Note that the commands are available via the «Show CodeLens commands for current line» action.

It would be nice if the button list could wrap when exceeding the viewport width.

Thanks!

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

Reproduce the issue with rstest-generated parametrized cases in the VS Code run/debug test buttons, including a viewport too narrow for the button list. Start by locating the implementation of the CodeLens run/debug button list; done means all buttons wrap or remain accessible through a scrollbar instead of being cut off.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
developer-experience, frontend
Issue type
Bug
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.