Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tab-completion doesn't honor the provider context provided by a previous argument when surfacing dynamic parameters #19498

Copy link
Copy link
@mklement0

Description

@mklement0
Issue body actions

Prerequisites

Steps to reproduce

Push-Location function:  # change to a non-file-system location
(TabExpansion2 'Get-ChildItem -LiteralPath $PSHOME -Fi').CompletionMatches.ListItemText
Pop-Location

Expected behavior

Filter
File

Actual behavior

Filter

That is, even though the file-system provider is implied by the -LiteralPath argument, tab-completing -Fi didn't surface the dynamic -File parameter.

Error details

No response

Environment data

PowerShell Core 7.4.0-preview.2 (behavior dates back to Windows PowerShell)

Visuals

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.