Skip to content

Autocomplete randomly stops working after certain line #1430

@longzheng

Description

@longzheng

What version of VS Code are you using?

v1.102.3

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?

npm

What operating system are you using?

Windows

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

@import 'tailwindcss';

VS Code settings

    "tailwindCSS.classFunctions": ["cva", "cn"],

Reproduction URL

I have not been able to replicate this outside of the private corporate project.

Describe your issue

Running into a weird issue where half the lines in the TSX file has Tailwind autocomplete, and the later half just doesn't work. For example at line 500 it works

Image

But at line 529 it stops working.

Image

Hover previews always work on any line

Image

If I delete enough lines in the file then autocomplete seems to work on all lines, but it's not simply the number of lines because if I replace half the file with empty lines autocomplete works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions