styled-components/vscode-styled-components

[Feature Request] - Syntax highlighting for custom tags

Open

#303 opened on Jun 3, 2021

View on GitHub
 (3 comments) (10 reactions) (0 assignees)JavaScript (893 stars) (123 forks)batch import
E-Hardbugenhancementhelp wanted

Description

Basically an extension of this issue: https://github.com/styled-components/vscode-styled-components/issues/224

Apparently the intellisense is with the TS compiler and can be configured there, but the syntax highlighting is handled by this plugin so setting custom tags in tsconfig.json has no effect on the syntax highlighting.

Is there a reason for this? Can we not just add a VS Code setting or whatever that allows you to set custom tags? Seems like a much better way of doing it than hard-coding tag names for every styled-components-style library under the sun (there are so many now!)

Contributor guide