PowerShell / PowerShell/vscode-powershell

Prioritize PowerShell autocomplete to top of suggestions list

Open
#4,352 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-IntelliSense Issue-Enhancement Up for Grabs
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
Summary

Powershell has a completion API for commands that prioritizes things such as camelcase letters. For instance the first completion for g-arg is Get-AzureResourceGroup.

If possible, we should use this API and prioritize those results to the top of the list, rather than the default lexical search vscode does. This will more closely match the editor experience to the shell experience.
image

TBD whether this should be the default behavior or an opt-in, but either way it should be controllable via a setting.

Proposed Design

No response

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

Start by investigating the PowerShell completion API and how the VS Code extension currently supplies autocomplete results. Determine how those results could be prioritized and how the behavior should be controlled by a setting; done means the shell-style ordering works and the default-versus-opt-in behavior is defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.