You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The classes are recognized by Tailwind's LSP as long as they're inside the attributes, but extracting them outside and getting Zed to recognize them using lsp.tailwind-language-server.settings.experimental.classRegex doesn't work like it does in VS Code, despite being mentioned in Zed's documentation.
create an empty project
npm init -y
npm install tailwindcss
create a JS file containing clsx("relative")
create a local Zed settings file recognizing that stuff inside clsx are classes:
{"lsp": {"tailwind-language-server": {"settings": {"experimental": {"classRegex": ["clsx\\(([^]*?)\\)"// or this["clsx\\(([^)]*)\\)","(?:'|\"|`)([^']*)(?:'|\"|`)"]// I don't know which one is better, I just copy and paste them]}}}}}
Check for existing issues
Describe the bug / provide steps to reproduce it
The classes are recognized by Tailwind's LSP as long as they're inside the attributes, but extracting them outside and getting Zed to recognize them using
lsp.tailwind-language-server.settings.experimental.classRegex
doesn't work like it does in VS Code, despite being mentioned in Zed's documentation.npm init -y
npm install tailwindcss
clsx("relative")
clsx
are classes:Zed Version and System Specs
Zed: v0.166.1 (Zed)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: