-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Can I highlight with typescript props? #39
Comments
This is currently not supported. As as workaround you could use the standard ways of configuring language injections of IDEA/WebStorm/your IDE and mark the string with a comment:
If you're using 2017.3 this would currently be equivalent. |
I tried the workaround, and the comment enabled intellisense (for LESS I guess?), but I got some errors:
Error between solid and $; Mismatched property value ( || ... is language supposed to be LESS? I tried CSS, style. |
Here's an updated workaround: |
As for a more general solution, it seems like the way to go should be to inject whenever the tag expression of a template literal is inferred to be To do that one would need to:
I will try to get around to it, but can't promise, unfortunately. If someone else is willing to try, I can answer questions. |
@undeadcat Thanks a bunch. I'll give this a go today. :) I'd love to help with the permanent solution but unfortunately I don't know much about the inner workings of WebStorm - but the solution sounds perfectly reasonable and I hope to see it someday. |
@undeadcat Your solution worked fine for me 👍 |
With 1.0.8 it's possible to add With regards to configuring injections based on type: #54 requests specifically that, keeping that issue open. |
Hi, I am using styled components with typescript.
with typescript, I need to set props into styled-components
like this
and use like
in this case, style in
withProps
function does not highlighted as normalstyled.div
function.Can this plugin support this? or there is other way to solve this?
The text was updated successfully, but these errors were encountered: