Test: Cargo terminal completions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- cli, developer-experience, testing
Research direction
Start with a VS Code build containing implementation PR #305309, enable the two terminal settings, and create the disposable project with the provided Cargo commands. Run the listed completion scenarios on one OS and supported shell, checking insertion, project-aware values, and manifest filtering; done means the selected checklist item passes, or failures include the requested environment and exact commands.
Written by the indexing model from the issue text.
Description
Refs: #336216
Implementation PR: #305309
- anyOS
Complexity: 2
Authors: @dmitrivMS, @meganrogge
A small smoke test of Cargo terminal completions. One OS and one supported shell (bash, zsh, or PowerShell) are sufficient; no exhaustive command, plugin, or toolchain matrix is needed.
Setup
- Use a build containing #305309 (a PR build, or Insiders after it lands), with Rust/Cargo available on PATH.
- Enable
terminal.integrated.suggest.enabledandterminal.integrated.shellIntegration.enabled, then open a new integrated terminal. - Create a disposable project with
cargo new cargo-suggest-smoke --bin --vcs none, thencd cargo-suggest-smoke. - Append this to the generated
Cargo.toml:[features] smoke = []
Use Ctrl+Space (or the terminal's Show Suggestions action) to request suggestions. Include a trailing space when completing an argument value. Use Tab to accept without running the command, then clear the line between checks.
Scenarios
- Subcommands and insertion: At
cargo, verify common subcommands such asbuild,check,run, andtestare offered. Typecargo buand acceptbuild; verify the command becomescargo buildwithout duplicated text. - Build options: At
cargo build --, verify--release,--features,--package, and--manifest-pathare offered. Accept--releaseand check that the existing command is preserved and is not executed. - Project-aware values: At
cargo build --features, verifysmokeis suggested. Atcargo build --package, verifycargo-suggest-smokeis suggested. Accept one value and check that it is inserted correctly. - Manifest file filtering: Create an empty
other.tomlbesideCargo.toml. Atcargo build --manifest-path, verify Cargo's file suggestions includeCargo.toml, notother.toml; directories may still appear. Accept the manifest and verify the inserted path is correct.
For failures, include the OS/shell, the exact command typed, and expected versus actual suggestions. Link reports to this test item and #336216.
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- Avg merge
- 14h 6m
- Merged PRs (30d)
- 631
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.
More from microsoft/vscode
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
stale triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
All issues in microsoft/vscode
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100