Comments (9)
Hey Benoît, thanks for the feedback!
I’m not sure you can extend syntax definitions like that. I might be wrong though. I think you’d have to define a brand new "language," which I don’t really want to do.
I use this extension and then set VS Code to associate CSS files with PostCSS: "files.associations": { "*.css": "postcss" }
If you do that it won’t complain about the syntax you mentioned.
Alternatively you can disable the built-in CSS validation: "css.validate": false
from tailwindcss-intellisense.
I use this extension and then set VS Code to associate CSS files with PostCSS: "files.associations": { "*.css": "postcss" } If you do that it won’t complain about the syntax you mentioned.
Hmm, I don't think that's gonna work for me, as I'm also using Sass (.scss files) with Tailwind.
No big deal. Thank you for your quick response :)
from tailwindcss-intellisense.
Okay so I misspoke earlier 😅 apologies!
You can actually do this.
from tailwindcss-intellisense.
Although, after some digging I still can’t find a way around the validation issue.
If you require validation I would recommend disabling the built-in validation, and using stylelint instead, which allows defining custom at-rules.
In terms of syntax highlighting.. how do you imagine the class names after an @apply
looking?
from tailwindcss-intellisense.
If you require validation I would recommend disabling the built-in validation, and using stylelint instead, which allows defining custom at-rules.
Nice, I will look at that, thanks!
In terms of syntax highlighting.. how do you imagine the class names after an @apply looking?
Maybe similar to how they appear in a selector?
from tailwindcss-intellisense.
What do you think?
from tailwindcss-intellisense.
Looks perfect! :)
from tailwindcss-intellisense.
Sweet! This is released now so let me know if you run in to any issues :)
from tailwindcss-intellisense.
Re-closing this, everything seems to work well :) Thanks again
from tailwindcss-intellisense.
Related Issues (20)
- not getting suggestions of tailwindcss intellisense HOT 1
- Regression between NPM releases 0.0.16 and 0.0.17 — Not working in Neovim HOT 20
- Failed to parse custom class regex in neovim HOT 2
- LSP broken on NVim(AstroNvim) with exit code 1 after latest update HOT 3
- tailwindCSS.experimental.classRegex breaks after Version 10.5 HOT 2
- Project paths with parentheses not working (v0.12.x) HOT 3
- tailwindcss-intellisense extension not working properly HOT 4
- Parser is reading (some) comments as classes HOT 1
- Notification of breaking api change with v1.92 release of VS Code HOT 2
- Tailwind css intellisense not working HOT 1
- VSCode 1.91 breaks code actions HOT 7
- tailwindCSS.emmetCompletions set not work HOT 1
- Intellisense not working on Windows for some projects / setups (v0.12.x) HOT 85
- TypeError: Cannot read properties of null (reading 'getClassList') HOT 2
- "Unknown at rule @apply" warning in Vue SFC style section HOT 2
- Releases and Changelog Not Updated HOT 2
- No Completion Suggestions Received for ERB file HOT 3
- Unable to find config file on network drive (v0.12 regression) HOT 7
- Isn't working not HOT 3
- Extension issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-intellisense.