-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in Get-CommandTreeCompletion with dynamic completion of option #26
Comments
Yeah, this is a weak spot in TabExpansion++ - I'll look into it. |
There are a couple of use cases I've run in to. |
Also running into this - has any progress been made here? |
I'm not sure, I recall @powercode fixing some things he ran into, but if you're having problems, it would seem like he hadn't fixed it, or at least not submitted a PR. I'm happy to give pointers if you can contribute a fix. |
I found the source of the issue, and have created a pull request: |
I'm trying to write a completer for p4 edit
but the completer never seems to get called.
-c is parsed as a System.Management.Automation.Language.CommandParameterAst and the check in Get-CommandTreeCompletion
skips that commandElement.
I'm a bit uncertain what the correct fix is? Should I change the condition toaccept CommandParameterAst or StringConstantExpressionAst?
The text was updated successfully, but these errors were encountered: