It's not an error per se, as PowerShell seems to apply the usual cmdlet parameter shortening rules here. But it differs from documentation and confuses syntax coloring in VS Code. Event GitHub syntax coloring is confused
Environment data
Versions
--------
PSResourceGet: 1.0.1
PowerShell: 7.4.1 or 5.1
Prerequisites
Steps to reproduce
When creating or modifying script metadata with
New-PSScriptFileInfo
orUpdate-PSScriptFileInfo
, the#requires
statement is added as following:According to About Requires document, it should be:
It seems, that PowerShell does not care, when executing script, but for example VS Code syntax coloring does not recognize the statement any more.
Expected behavior
Actual behavior
Error details
It's not an error per se, as PowerShell seems to apply the usual cmdlet parameter shortening rules here. But it differs from documentation and confuses syntax coloring in VS Code. Event GitHub syntax coloring is confused
Environment data
Visuals
No response