lzybkr / TabExpansionPlusPlus

A V3 PowerShell module to improve tab expansion and Intellisense

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get-ArgumentCompleter

ShayLevy opened this issue · comments

Tested in v4

When I load the module and execute Get-ArgumentCompleter I get no results. Sometimes it takes a few invocations until you get back completer objects and even then sometimes the list doesn't contain all completers and it takes one or more executions of the command to get all of them.

I haven't tested w/ V4 yet, but it may be by design.

When TabExpansion++ is loaded, it starts a background runspace to scan all modules on the system. This background scanning can take some time.

Results from this background scan are made available as soon as possible. This is why you may see multiple invocations before you see all the results.

If this scanning was not done in the background, loading the module would be much slower - it would take as long as it takes to run Update-ArgumentCompleter.

If this doesn't explain the problem, feel free to reactivate and I'll investigate.

Agree, it is with incorportaing his explanation in the help file.