Skip to content

Astro code fence blocks are not treated as JS making classFunctions not work #1385

Open
@gustadev24

Description

@gustadev24

What version of VS Code are you using?

v1.100.2

What version of Tailwind CSS IntelliSense are you using?

v0.14.19

What version of Tailwind CSS are you using?

v4.1.4

What package manager are you using?

pnpm

What operating system are you using?

Pop!_OS 22.04 LTS

VS Code settings

{
  "tailwindCSS.classFunctions": [
    "cva",
    "cx",
    "clsx"
  ]
}

Reproduction URL

https://github.com/gustadev24/tw-classFunction-issue

Describe your issue

In component script, intellisense with classFunctions list doesn't work.

Image

Image

It doesn't appear suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions