-
Notifications
You must be signed in to change notification settings - Fork 215
[v4] @utility
directive's content css doesn't have intellisense for css properties
#1146
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
Comments
@utility
directive's content css doesn't have intellisense for css properties@utility
directive's content css doesn't have intellisense for css properties
I an also confirm this is not working. |
It happens to me too |
- [x] Support property and variable completions inside `@utility` (behave like a style rule) - [x] Support style-rule like completions inside `@custom-variant` - [x] Support style-rule like completions inside `@variant` - [x] Make sure `@slot` isn't considered an unknown at-rule Fixes #1146
This will be fixed in the next release of the extension 👍 (should be later today) |
@thecrypticace it looks like the issue was indeed resolved, |
@idan-faibish Ah yeah so syntax coloring is a completely separate process in VSCode and is completely unrelated to the language server. This is primarily related VSCode's own CSS language not supporting nesting. I'm gonna try to fix that for our own CSS language soon though. |
Hey @thecrypticace! Any update on syntax coloring? 🙏 Currently everything is white as soon as you use a directive like |
I am still getting this issue in neovim and vscode |
@me-nkr Neovim doesn't run our css language server so this makes sense. As of the last release (or two) of the language server we do actually build & publish the file for this. I might need to add an export for it (but also maybe not). You would have to configure nevoid to use it for CSS files. The language server protocol doesn't allow us to intercept / replace / hide stuff from other language servers which is why it has to operate as a separate server that replaces the existing CSS one. As for VSCode, if you're seeing this there can you open a separate issue and provide a reproduction please? |
Sorry to bring up an old issue. I use neovim and having intellisense inside I've checked, but can't find the way to do so. Thanks in advance! |
@jorgebef So you'll technically get some IntelliSense support inside Unfortunately, I don't know enough about Neovim to know how to replace the CSS language server for it but basically what you'd need to do (somehow) is:
cc @RobinMalfait any chance you'd know how to reconfigure Nevoim to do this or nah? |
What version of Tailwind CSS are you using?
4.0.0
What build tool (or framework if it abstracts the build tool) are you using?
vite 6.0.11
What version of Node.js are you using?
20.13.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Describe your issue
as stated in the title.
when using the new
@utility
directive, the inner css code doesn't have any intellisense. its like we are not using any css code.(the code itself is working just fine, its only an intellisense issue)
in the image below, we can even see that the coloring (plain white) indicates it

The text was updated successfully, but these errors were encountered: