Skip to content

intellisense does not work properly #1249

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

Open
shayan-flh opened this issue Mar 4, 2025 · 8 comments
Open

intellisense does not work properly #1249

shayan-flh opened this issue Mar 4, 2025 · 8 comments
Labels
question Further information is requested

Comments

@shayan-flh
Copy link

shayan-flh commented Mar 4, 2025

What version of VS Code are you using?
v1.97.2
What version of Tailwind CSS IntelliSense are you using?
v0.14.8
What version of Tailwind CSS are you using?
v4.0
What package manager are you using?
npm
What operating system are you using?
Windows
Tailwind config

// Paste the contents of your Tailwind config file here

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react(),
  tailwindcss(),
  ],
})

//version 4 of tailwind does not have an tailwind config file based on the tailwind document so this is the vite.config.js

VS Code settings

// Paste your VS Code settings in JSON format here
{
    "files.autoSave": "afterDelay",
    "npm.enableRunFromFolder": true,
    "debug.javascript.codelens.npmScripts": "all",
    "editor.minimap.enabled": false,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "editor.stickyScroll.enabled": false,
    "editor.unicodeHighlight.nonBasicASCII": false
}

Reproduction URL

https://github.com/shayanjoon11/tailwind-test.git

Describe your issue

intellisense does not work on tailwindcss v4 and there is no class name suggestions either in the html file or jsx file

@philipp-spiess
Copy link
Member

@shayanjoon11 Hey! It seems like you forgot to fill out the "reproduction url" section. Mind sharing your project setup with us so we can investigate?

Reproduction URL

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.

@shayan-flh
Copy link
Author

shayan-flh commented Mar 6, 2025

@philipp-spiess hey i edited and placed the project repository's link on the informations

@thecrypticace
Copy link
Contributor

This project is working for me:

Image Image

Can you try loading up your project again and seeing if it works?

@thecrypticace thecrypticace added the question Further information is requested label Mar 6, 2025
@shayan-flh
Copy link
Author

its fixed now thank you.... we should close and open the vscode when we download v4

@thecrypticace
Copy link
Contributor

That shouldn't be required but I've seen a couple mentions of this "fixing" projects for people. I need to figure out why. Will look into it!

@darkwiz666
Copy link

darkwiz666 commented Mar 9, 2025

I'm getting suggestions, but not color boxes. Updated intellisense plugin, restarted Codium, nothing.

@ryanelian
Copy link

ryanelian commented Mar 11, 2025

Image

I'm not getting flex-1 for some reason when using Tailwind CSS 4

It hovers just fine:

Image

@darkwiz666
Copy link

I'm getting suggestions, but not color boxes. Updated intellisense plugin, restarted Codium, nothing.

Didn't realize it but now I'm also not getting the css on hovering the class either. I've updated everything and restarted the application no less than 5 times over the past week, so...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants