-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Components not being highlighted in VS Code #321
Comments
We separate components tag to a separate syntax token entity in #315. I guess you're using dark(visual studio)? Seems like the es class would also be white in this theme |
Can you change the colour of that? |
Sorry, I can't change your theme. But you can override your theme if you don't like the color: {
"editor.tokenColorCustomizations": {
"[Visual Studio Dark]": {
"textMateRules": [
{
"settings": {
"foreground": "#569CD6",
},
"scope": "support.class.component.svelte"
}
],
},
}
} you can either put it in your global or workspace setting.json. Change "[Visual Studio Dark]" to whatever you're using now. |
To be clear, the issue is that we added a new kind of syntax highlight. But the theme you are using either not support it or it highlight that as white color. If we change it to another syntax highlight kind, there might be another theme not highlight it. |
Thank you for the override options to add to However I'm confused why you didn't use |
Yeah, you were right, that's indeed quite confusing. I merge and released it too rushed. Changed it to |
You'll change the scope of the customization to |
Am I missing something? I didn't put this in a bug report because I'm not sure whether it's even a bug or is it just me? You know when you have a sense that something's different but can't quite understand what it is... I'm at that stage.
I think it's since the most recent Svelte for VS Code
v101.3.0
update. Why are my<Component />
tags white instead of blue? That's the first question, and then when I hover over them... well I can't even remember if this is what I should be getting.But somehow I imagine or expect more info than that. But it's more the point that I think I remember my
<Components />
being blue before. And the<FetchEverything />
is only blue because I'm hovering over it, it's white aka unrecognised.Any ideas?
The text was updated successfully, but these errors were encountered: