Skip to content

false positive invalidConfigPath error when using inline #1440

@echocrow

Description

@echocrow

What version of VS Code are you using?

v1.103.2

What version of Tailwind CSS IntelliSense are you using?

v0.14.26

What version of Tailwind CSS are you using?

v4.1.11

What package manager are you using?

pnpm

What operating system are you using?

macOS

Tailwind CSS Stylesheet (v4) or config file (v3)

n/a

VS Code settings

n/a

Reproduction

.foo {
  color: --theme(--color-red-500 inline);
}

Describe your issue

The above code is valid tailwind code, but the IDE extension throws a false-positive invalidConfigPath error:

'--color-red-500 inline' does not exist in your theme. Did you mean '--color-red-500'?(invalidConfigPath)
Image

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