styled-components / vscode-styled-components

Syntax highlighting for styled-components
MIT License
917 stars 118 forks source link

Broken editor styles after Typescript type parameters #442

Open ZhenyaUsenko opened 9 months ago

ZhenyaUsenko commented 9 months ago

Specifying type parameters after styled.div seem to break further editor styles, messing up theme colors

Note the const color before and after type parameters.

Screenshot 2024-01-16 232019

It can be even worse with different themes. Here's my usual theme for example

Screenshot 2024-01-16 235345

When we remove type parameters, we get correct colors

Screenshot 2024-01-16 232105