Conversation

thecrypticace

Fixes tailwindlabs/tailwindcss-intellisense#1313

Right now given this CSS:

@theme reference {
  --text-header: 1.5rem;
}

@utility text-header {
  text-transform: uppercase;
}

You'll see two entries for text-header in IntelliSense completions but we only want you to see one. This PR solves this by merging their modifier lists and de-duping by class name.

@thecrypticacethecrypticace force-pushed the fix/dupe-utility-suggestions branch from 7bd0709 to 57300d5 Compare May 9, 2025 17:38
@thecrypticacethecrypticace marked this pull request as ready for review May 9, 2025 17:43
@thecrypticacethecrypticace requested a review from a team as a code owner May 9, 2025 17:43
@thecrypticacethecrypticace enabled auto-merge (squash) May 9, 2025 20:09
@thecrypticacethecrypticace merged commit f0986ce into main May 9, 2025
7 checks passed
@thecrypticacethecrypticace deleted the fix/dupe-utility-suggestions branch May 9, 2025 20:12
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Duplicate suggestion appears when a class is declared using @theme and then extended with a weaker @utility