Skip to content
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

Optimize when we run GetCommandInfoAsync #1237

Merged

Conversation

TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Mar 13, 2020

Now we are certain that GetCommandInfoAsync will only run when we have a Function. I included Unknown as well just in case, but I could take that out.

We should no longer see these in logs:

2020-03-13 12:37:12.884 -07:00 [ERR] Execution of the following command(s) completed with errors:

    Microsoft.PowerShell.Core\Get-Command -Name -ErrorAction Ignore

^ Explanation: -Name is being passed in to Get-Command.

@TylerLeonhardt TylerLeonhardt requested a review from rjmholt as a code owner March 13, 2020 19:36
Co-Authored-By: Robert Holt <rjmholt@gmail.com>
@TylerLeonhardt TylerLeonhardt merged commit abf2496 into PowerShell:master Mar 16, 2020
@TylerLeonhardt TylerLeonhardt deleted the optimize-for-commands branch March 16, 2020 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants