Skip to content

Add a .NET API to add native completers #10722

@rjmholt

Description

@rjmholt

Summary of the new feature/enhancement

Currently there are ways to register a scriptblock as a completer with Register-ArgumentCompleter, and on cmdlets it's possible to use the [ArgumentCompleter()] attribute to specify an IArgumentCompleter for a parameter. But there's no way to specify a completer for an ordinary command that I know of that doesn't involve executing a scriptblock.

By this I mean, you can use Register-ArgumentCompleter or you can use override TabCompletion2, but I'd really like a nicer hook for:

  • General completions
  • Command completions
  • Native command completions, especially

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions