Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Avoid `invalidConfigPath` for function values Pass `validateConfigPath` if a type of value equals to `function`. The purpose of this commit is to avoid unwanted warnings when we define theme values as functions in tailwind.config.js, which, for example, are required to define theme colors with opacity enabled. https://github.com/tailwindlabs/tailwindcss/discussions/2206#discussioncomment-60081
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJg5CN6CRBK7hj4Ov3rIwAApVoIAAAko4oGKVaZ8nusHgD4cCrO d04DcmTvCfx2vcb8I5f1cPsmEVv0wSXox4I5P/y3+Kl6vEGB9oP5eZeN7LRoGUc0 yomyOwXupBOIdY8hevoIgOMREvVca5VwhSQ3A8BwiqmK6gMcdyinrRhrheNR3zpr L4YGpGbVsgI1zGy+88TOoVOPPAsfa7vLKVEbB20j0QMMtn7PvqR4iWBckrtWNmI2 sq8HDW9w+iPzOvfmfnhyH/wNZk7mcQnQqJX/WCx3hz3KtPNPXdIbjym7pFCO+YQo xwXYddoyfiLzO4tkRFDBnSg0fRo0Br3ntVGTZZjbB1RAPqmBBddOTNxSGcLXkZw= =DP5q -----END PGP SIGNATURE-----
Akihiro Okuno <choplin.choplin@gmail.com>
3 years ago
1 changed files, 3 additions(+), 2 deletions(-)
M packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts -> packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts
diff --git a/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts b/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts
index 7f8bb84bc705a4b7834d82abede0ae001c9eee8f..9a53db3b3fcd11cd042e69aeafcdbee8ec51aab6 100644
--- a/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts
+++ b/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts
@@ -90,11 +90,12 @@       typeof value === 'string' ||
       typeof value === 'number' ||
       value instanceof String ||
       value instanceof Number ||
+      Array.isArray(value) ||
+  return path.reduce((acc, cur, i) => {
 import isObject from '../util/isObject'
-import type { TextDocument, Range, DiagnosticSeverity } from 'vscode-languageserver'
     )
   ) {
-    let reason = `'${pathToString(path)}' was found but does not resolve to a string.`
+    let reason = `'${pathToString(path)}' was found but does not resolve to a string, number, array or function.`
 
     if (isObject(value)) {
       let validKeys = Object.keys(value).filter(