#How to enable VSCode highlight "client" directives ?
5 messages · Page 1 of 1 (latest)
I am not sure how to do it, because I am not too experienced with VSCode and TextMate scopes, but I am sure there is a tutorial somewhere for adding your own!
The most simple way to do this might be a regex matcher, as unfortunate as it is. If someone knows how, please weigh in!
I would encourage you to find a tutorial online, in the meantime. I would use it, if you ever publish it as an extension!
Or maybe there is already an extension that supports matching and highlighting, perhaps one for Todos that can be configured to highlight other things!
It could be nice to add it to astro vscode extension ?
You don't need to use a directive if it doesn't need to be hydrated so it probably makes sense to not do it as a default. Also the extension doesn't differentiate between .astro components and framework components when it comes to autocompleting the directives (attribute) so it might take a lot of work