left angle bracket color before string interpolation is incorrect
See original GitHub issueDescribe the bug
- The color of the angle bracket becomes the same as the
$
sign. - Also the
$
between the two angle brackets loses its distinct color before typing the variable.
To Reproduce
Please complete the following information:
- Operating System and version: MacOS
- VS Code version: 1.70.0
- Dart extension version: v3.46.1
- Dart/Flutter SDK version: 2.17.6 (stable)
I’ve been working a lot with code generation lately and when the left angle bracket turns white, it confuses me as if it’s part of the interpolation 😅
Sorry if this is not the right place to file the bug. Cheers
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Angle bracket (<) without triggering html code - Stack Overflow
The character “<” is the LESS THAN character. If you actually meant an angle bracket, then you can use U+2329 LEFT-POINTING ANGLE BRACKET...
Read more >Invalid parsing of interpolated strings with curly braces ...
The reason for all this has more a historic background. In the past String.Format did not support curly braces after a "hole".
Read more >Interpolation - Sass
Interpolation is useful for injecting values into strings, but other than that it's rarely necessary in SassScript expressions. You definitely don't need it...
Read more >Quoting constructs - Raku Documentation
Variables with the $ sigil are interpolated whenever the occur (unless escaped); that's why, in the example above, "$color" became blue .
Read more >Understanding Angular property binding and interpolation
Use brackets: When binding properties, the square bracket is always expected, and omitting it will lead to Angular treating it like a regular ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks - I think that’s it. In your screenshot it looks like the
<
and$
are joined together, which I guess is because of ligatures, which seems to be https://github.com/microsoft/vscode/issues/131092. I don’t know whether that’s a bug somewhere, or it’s by design that ligatures can only be one color, but I don’t think there’s anything we can do here unfortunately (so going to close this as an upstream issue).There was a request in VS Code to allow disabling specific ligatures (so you could blacklist
<$
for example), but it was closed for not getting enough 👍s:https://github.com/microsoft/vscode/issues/98758
Also - does changing
fontLigatures
affect it?Perhaps related to https://github.com/microsoft/vscode/issues/130996, but that claims to be closed. Similar issue reported at https://github.com/golang/vscode-go/issues/1750.
Also, https://github.com/microsoft/vscode/issues/131092 was closed as wontfix.