rust-lang / rust-lang/rust-analyzer
[vscode] text wrapping for run/debug test buttons
Nobody has claimed this yet.
- 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:

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