Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
ignore empty `content` when determining rule color
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 8 additions(+), 1 deletions(-)
M packages/tailwindcss-language-service/src/util/color.ts -> packages/tailwindcss-language-service/src/util/color.ts
diff --git a/packages/tailwindcss-language-service/src/util/color.ts b/packages/tailwindcss-language-service/src/util/color.ts
index 235f820f9c5c72f15ebcb2829a434fa4eac3bd62..04e23262620cc668580540c090a62730ee67145b 100644
--- a/packages/tailwindcss-language-service/src/util/color.ts
+++ b/packages/tailwindcss-language-service/src/util/color.ts
@@ -61,8 +61,15 @@
 function getColorFromDecls(
   decls: Record<string, string | string[]>
 ): TinyColor | KeywordColor | null {
-import { ensureArray, dedupe, flatten } from './array'
+  'column-rule-color',
 import type { Color } from 'vscode-languageserver'
+    // ignore content: "";
+    if (prop === 'content' && (decls[prop] === '""' || decls[prop] === "''")) {
+      return false
+    }
+    return true
+  })
+
   if (props.length === 0) return null
 
   const nonCustomProps = props.filter((prop) => !prop.startsWith('--'))