Skip to content

Conversation

@samtrion
Copy link

With this PR the tailwind specific @-rule are declared to VSCode as explained here - Custom Data Extension. So that they are no longer marked as incorrect by the VSCode CSS Language Service.

Further information about Custom Data Extension
Description of the Format
Microsoft Example for Implementation

@bradlc
Copy link
Contributor

bradlc commented Jan 15, 2021

Wow I had no idea you could do this! Thanks for the PR @samtrion

I think on this occasion I'm going to say no for a couple of reasons:

  • Although this suppresses "unknown at rule" warnings, it does not suppress @apply class list errors ("semi-colon expected", "at-rule or selector expected")
  • Adding the at directives using custom data provides suggestions, but these are less flexible than the existing suggestions the extension provides. For example we cannot provide different suggestions based on the user's Tailwind version. The existing suggestions provide links to the correct docs site based on the Tailwind version you are using.

Thanks again!

@bradlc bradlc closed this Jan 15, 2021
@samtrion samtrion deleted the feature/css-custom-data branch January 15, 2021 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants