Provide the tab-completions of an alias' target command on the alias itself also when targeting native programs #21609
Labels
Issue-Enhancement
the issue is more of a feature request than a bug
Needs-Triage
The issue is new and needs to be triaged by a work group.
Summary of the new feature / enhancement
An alias sensibly sees the same tab-completions as its target command, but, unfortunately and unexpectedly, only if the alias target is a PowerShell commands, and not also for external (native) programs.
For instance, defining
Set-Alias gdt Get-Date
makesGet-Date
's tab-completions available ongdt
calls too.By contrast, say you've used
Register-ArgumentCompleter
to define completions forpwsh
, and you've also definedSet-Alias psh pwsh
; currently,psh
unexpectedly does not use the tab-completions defined forpwsh
.This asymmetry should be fixed.
A minimal example:
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: