Skip to content

Log the version of PSSA we import #673

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

Closed
wants to merge 1 commit into from

Conversation

rkeithhill
Copy link
Contributor

Given issues we've seen recently, it would be nice to have this info
in the log.

This will output:

2018-06-03 20:48:38.753 [VERBOSE] C:\Users\Keith\GitHub\rkeithhill\PowerShellEditorServices\src\PowerShellEditorServices\Analysis\AnalysisService.cs: In method 'EnumeratePSScriptAnalyzerCmdlets', line 362:
    The following cmdlets are available in the imported PSScriptAnalyzer module (version 1.16.1):
        Get-ScriptAnalyzerRule
        Invoke-Formatter
        Invoke-ScriptAnalyzer

Given issues we've seen recently, it would be nice to have this info
in the log.
@rkeithhill
Copy link
Contributor Author

rkeithhill commented Jun 4, 2018

Heh, I was wondering if CmdletInfo had the Version property going all the way back to v3. Apparently, it doesn't. :-( Guess we can table this PR until v2 where we drop v3/4 support.

@rkeithhill
Copy link
Contributor Author

Closing this in favor of PR #677

@rkeithhill rkeithhill closed this Jun 5, 2018
@rkeithhill rkeithhill deleted the rkeithhill/log-pssa-version branch June 5, 2018 21:08
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.

1 participant