Open alexr00 opened 4 years ago
From @scriptingstudio in https://github.com/microsoft/vscode/issues/97404
Powershell methods foreach and where are not highlighted after curly bracket. With parenthesis it works fine.
foreach
where
Example code:
@($group).where{$_.count -gt 1 -and $_.name}.foreach{...}
"where" is highlighted. "foreach" is not highlighted and has a very general scope
The foreach should have a more specific scope.
From @scriptingstudio in https://github.com/microsoft/vscode/issues/97404
Environment
Issue Description
Powershell methods
foreach
andwhere
are not highlighted after curly bracket. With parenthesis it works fine.Example code:
"where" is highlighted. "foreach" is not highlighted and has a very general scope
Screenshots
Expected Behavior
The
foreach
should have a more specific scope.Code Samples