tailwindlabs / tailwindcss-intellisense

Intelligent Tailwind CSS tooling for Visual Studio Code
2.85k stars 195 forks source link

If hide tailwind.config.js in VSCode explorer, intellisense plugin not work. #1052

Open nyssance opened 1 month ago

nyssance commented 1 month ago

What version of VS Code are you using?

v1.93.1

What version of Tailwind CSS IntelliSense are you using?

v0.12.10

What version of Tailwind CSS are you using?

v3.4.11

What package manager are you using?

bun

What operating system are you using?

macOS, Windows

Tailwind config

// Paste the contents of your Tailwind config file here

VS Code settings

    "files.exclude": {
        ...
        "tailwind.config.js": true
    },
    "search.exclude": {
        ...
        "tailwind.config.js": false
    },

Describe your issue

If hide tailwind.config.js in VSCode explorer, intellisense plugin not work.

isimmons commented 2 weeks ago

Same if I try to use the settings.json "tailwind.files.exclude": ["tailwind.config.js"] Now no files get intellisense.

Reason I'm trying to do this is because VSCode built in editor.colorDecorators does not work for tailwind.config.js when the tailwind extension is enabled and when I just use the tailwind extension, I get no colors in the config file.