rust-lang / rust-lang/rust-analyzer
Focus on the terminal when running a command
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
For command line apps in particular, it would often be handy for the focus to move to the vscode terminal when running them. This seems like it's the responsibility of the extension to do rather than a setting on the terminal extension.
- This should likely be the default behavior
- This should probably have a setting to disable this behavior.
- It's possible that it makes sense to have different categories of runnables have different behavior (e.g. cargo run, cargo test, cargo check)
I didn't find a matching existing issue when searching, but it's probable that one has been raised before on this, so I'd not be surprised if this is a dupe.
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
No file or test is named. Start by locating the extension's runnable command entry points and its VS Code terminal integration, using cargo run, cargo test, and cargo check as the behavior categories described in the issue. Clarify the default focus behavior, opt-out setting, and whether categories need separate handling before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- cli, developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100