Skip to content

Commit c5b5c1b

Browse files
committed
compare scope when determining css conflicts (tailwindlabs#134)
1 parent 3f07842 commit c5b5c1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lsp/providers/diagnostics/getCssConflictDiagnostics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export function getCssConflictDiagnostics(
4444
!Array.isArray(meta) &&
4545
!Array.isArray(otherMeta) &&
4646
equal(meta.context, otherMeta.context) &&
47-
equal(meta.pseudo, otherMeta.pseudo)
47+
equal(meta.pseudo, otherMeta.pseudo) &&
48+
meta.scope === otherMeta.scope
4849
)
4950
})
5051

0 commit comments

Comments
 (0)