Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Merge branch 'master' of github.com:tailwindlabs/tailwindcss-intellisense
Brad Cornes <bradlc41@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(