Skip to content

Hang when editing certain tailwind class names #36223

@steveruizok

Description

@steveruizok

Summary

When editing tailwind classnames, the suggestion box causes a significant delay.

Video
Kapture.2025-08-15.at.06.47.47.mp4
Snippet ```tsx export function Hello() { return
hello
; } ```

Description

When I edit the classnames of a React component in a project that uses tailwind, certain keywords appear to freeze the UI while the suggestions are created. I have turned off AI autocomplete. In the attached video, I'm pressing 0 constantly during the hang. You'll see the first zero, then the hang, and then the rest of the zeroes once the UI becomes responsive again.

Steps to reproduce:

  1. In a [nextjs? project that includes tailwind]... create a react component
  2. In the classname of that component, write a classname that involves a breakpoint modifier
  3. Enter a pixel value

Expected Behavior: The traditional Zed snappiness
Actual Behavior: A ~2s freeze on the UI

Zed Version and System Specs

Zed: v0.199.6 (Zed)
OS: macOS 15.5.0
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

language serverAn umbrella label for all language serverstailwind cssTailwind CSS styling framework support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions