Closed
Description
What version of Tailwind CSS IntelliSense are you using?
v0.9.1
What version of Tailwind CSS are you using?
v3.2.2
What package manager are you using?
npm
What operating system are you using?
Linux
Tailwind config
N/A
VS Code settings
"tailwindCSS.includeLanguages": {
"html-eex": "html"
},
Reproduction URL
Describe your issue
Hi, I recently find that tailwindcss-intellisence does not work in phoenix projects that use tailwindcss in the eex/leex/heex templates. I did some debugging and found that the language server didn't treat the template files as in the project.
the folder structure for a phoenix project is like this:
project
- assets
- tailwindcss.config.js
- lib
- project_web
- live
- template.html.heex
- templates
- view_name
- view.html.eex
....
in the log:
"message": "[Global] Creating projects: [{\"folder\":\"/home/xxx\",\"configPath\":\"/home/xxx/assets/tailwind.config.js\",\"isUserConfigured\":false,\"documentSelector\":[{\"pattern\":\"/home/xxx/assets/tailwind.config.js\",\"priority\":0},{\"pattern\":\"/home/xxx/assets/**\",\"priority\":3}]}]"
it seems only look up to the assets/**
hence all the template files got ignored.
do you think if it's ok to add a documentselector directly to root?
Metadata
Metadata
Assignees
Labels
No labels