PowerShell / PowerShell/vscode-powershell

Parameter Intellisense should include parameter aliases

Open
#3,798 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-IntelliSense Issue-Enhancement
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

Example:
Get-Childitem -System has a parameter alias so it can also be referenced as -as, this should show up as a valid autocomplete, and maybe have an option to auto-translate the parameter to its non-aliasesd name (though format-on-save should do this so maybe not necessary)

Proposed Design

image
<The above should also show "as", maybe with an indicator that shows it's an alias to System>

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 locating the extension's parameter IntelliSense or autocomplete entry point and trace how Get-ChildItem parameters are discovered and displayed. Use the -System/-as example from the issue to verify that aliases appear as valid completion items and that any alias relationship is represented as agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript
Domain
devtools
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.