See #2 for the introduction of coming changes and the reasons.
Remove the obsolete wrapper New-CompletionResult.
New-Object System.Management.Automation.CompletionResult should be used instead.
Remove support for obsolete profile names *TabExpansionProfile*.ps1.
Names like *ArgumentCompleters.ps1 should be used instead.
Add new functions Register-InputCompleter and Register-ResultCompleter.
They should be used instead of adding completers directly to options.
Old adding to options still works but this may change later.
Improve the work around read-only result collections.
Upgrade the sample TabExpansionProfile.ps1 according to the above notes.
Fix some minor code defects, including leaked completers variables.
See #2 for the introduction of coming changes and the reasons.
Remove the obsolete wrapper
New-CompletionResult
.New-Object System.Management.Automation.CompletionResult
should be used instead.Remove support for obsolete profile names
*TabExpansionProfile*.ps1
. Names like*ArgumentCompleters.ps1
should be used instead.Add new functions
Register-InputCompleter
andRegister-ResultCompleter
. They should be used instead of adding completers directly to options. Old adding to options still works but this may change later.Improve the work around read-only result collections.
Upgrade the sample
TabExpansionProfile.ps1
according to the above notes. Fix some minor code defects, including leaked completers variables.