rust-lang / rust-lang/rust-analyzer

Focus on the terminal when running a command

Open
#20,152 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-vscode C-feature
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.