PowerShell / PowerShell/vscode-powershell

Detect and Narrow Parameter Sets based on parameters

Open
#3,880 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

New-AzADSPcredential has 9 parameter sets
image

If I specify parameters that narrow the possible parameter sets, invalid overloads should no longer be shown. Further, the frame should update to show the most recent parameterset.

Proposed Design

This should be doable, it happens in other languages e.g. Typescript.

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

The issue names no files, tests, or entry points. Start by locating parameter-set handling in the TypeScript PowerShell extension and reproduce the New-AzADSPcredential example; done means invalid parameter sets are hidden and the frame reflects the latest parameter set.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript
Domain
devtools, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.