-
Notifications
You must be signed in to change notification settings - Fork 512
#Requires with hashtable marked as invalid. #1314
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
Comments
What version of PSSA is getting loaded into the integrated console. You should be able to check this with:
|
@rkeithhill 1.16.1 |
OK, that message is coming from PSScriptAnalyzer but in this case it is correct. A
|
@rkeithhill, that was a copy paste directly from about_requires. If it cannot be multi-line I will submit a documentation issue to Microsoft. |
I'm ~90% sure that's a doc bug. |
@rkeithhill, fair enough. I have honestly never tried. Just working on the EditorSyntax repo. Will submit a doc bug report. |
System Details
Issue Description
When using
#Requires -Modules
with a hashtable (valid per https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_requires):The hashtable is marked as invalid within VS Code:
The text was updated successfully, but these errors were encountered: