PowerShell / PowerShell/vscode-powershell

Add MRU to argument prompt when debugging a PowerShell script

Open
#2,846 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Summary of the new feature

When one debugs a PowerShell script with the "PowerShell Launch Current File w/Args Prompt" configuration:

        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File w/Args Prompt",
            "script": "${file}",
            "args": [
                "${command:SpecifyScriptArgs}"
            ],
            "cwd": "${file}"
        },

the input field is pre-filled with the most recent arguments input on the previous debug session.

It would be useful to have a list of most recently used argument lists, so that one could easily test the same script with several sets of arguments.

Proposed technical implementation details (optional)

The list should be sorted by most-recently used argument list.

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 with the PowerShell Launch Current File w/Args Prompt configuration and the ${command:SpecifyScriptArgs} input described in the issue. Trace how the prompt is populated and determine where its recent argument lists are handled. Done means the prompt offers previously used argument lists in most-recently-used order.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.