Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Fix diagnostic false-positive when no CSS properties are present (#793)
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJkdbqwCRBK7hj4Ov3rIwAAd8cIAFTqJoW7Hd32hkhzb1TkYA+0 ByhhLMkJXD+W54tpg2GIKm8TpQVSfLk7QwhT6QNyCB4nCF6Kko5z+M/lSbnXdhIq xBlKn0Ts5dS7lOLFgBF+liuwmtPWtDJTFlP5Fz6ocffylF2wsX3+IGaH+pTedbBR 4FCB/V4Q6M8YeeIWCxQYc88+1eU3e0rktpAvck7cCGOIfPiye2gc0rVBx2A8eizh JdWe/Sejmsxkqeb446QXJg3n3lWtLjWW932DHqVNeXrpdNeJbNTtC6g9vD1whKgo z4idD+3aOxtJilfyLvunMSAaQIVdumplWA47I4a+rZc9XT+uk9y9FsDbf18JVXQ= =Shit -----END PGP SIGNATURE-----
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 9 additions(+), 0 deletions(-)
M packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts -> packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts
diff --git a/packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts b/packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts
index a531af0e53f62738def80eaa608a8800dd453975..0950e761560f2c94ea69b91fd7b2fbb29ff41aea 100644
--- a/packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts
+++ b/packages/tailwindcss-language-service/src/diagnostics/getCssConflictDiagnostics.ts
@@ -82,9 +82,14 @@           if (otherRules.length !== rules.length) {
             return false
           }
 
+          let propertiesAreComparable = false
+
           for (let i = 0; i < otherRules.length; i++) {
             let otherRule = otherRules[i]
             let properties = getRuleProperties(otherRule)
+            if (info[i].properties.length > 0 && properties.length > 0) {
+              propertiesAreComparable = true
+            }
             if (!equal(info[i].properties, properties)) {
               return false
             }
@@ -92,6 +97,10 @@             let context = jit.getRuleContext(state, otherRule, otherClassName.className)
             if (!equal(info[i].context, context)) {
               return false
             }
+          }
+
+          if (!propertiesAreComparable) {
+            return false
           }
 
           return true