Here is a specific, reproducible example where the class keyword is improperly colored in Visual Studio Code.
Example Code
function Test-Function {
[CmdletBinding()]
param (
[string] $Class
)
}
### Notice the blue color of "Class", indicating that it is a reserved language keyword.
Test-Function -Class asdf
### Notice how the "-Name" parameter is colored differently than "-Class" above
Get-Process -Name asdf
Here is a specific, reproducible example where the
class
keyword is improperly colored in Visual Studio Code.Example Code
Screenshot of Result
Diagnostic Details
Cheers, Trevor Sullivan