Open
Description
Environment
- Editor and Version: VS Code: 1.25.1
- Your primary theme: Dark+ (with corrections for punctuation inside subexpressions inside strings)
Issue Description
Shouldn't both of these appear equivalent? These are all just accessing a property of an object.
$dir.Extension
$dir[0].Extension
($dir).Extension
obviously there could be a complete expression inside the brackets.
(image doesn't contain the third example line)
Expected Behavior
I would have expected the properties to both be shown in the same dull yellow, but only the first one is, the others are instead white, the default when no scope match occurs.
Using VS Code's Inspect TM Scopes, the first line, results in 'entity.name.function.invocation.powershell' and 'source.powershell', where as the second only has 'source.powershell'.
Fortunately ${dir}.Extension
appears correct, but brings up a different issue.