Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Merge pull request #365 from choplin/patch-1 Avoid `invalidConfigPath` for function values
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJg5ZHYCRBK7hj4Ov3rIwAA3CkIAEwUjXyyv6f50+NaNfh1Ey2g fU5VBSR+pyBRJp6MSN/TxKZpDtubp8WTyz98IqGs8L0fwc9VbBm/3QoIy9RL1HZx TBQQ0gewM2NqtXWPnX+uELTeEOWu71fkrwXh4RHDSl6rBFO3BlZovjC8NlK5Wxv6 OgUjiE12fb+DfEdL8FkuLjdGalEbzdfS3mj4lZvtdhAhVRHhU3j8ItdtxcuiTpBg MxDKWJcyqPbiKlW9J0lfXf3cYHkwIeJYfxC4rBNKjFoS5erwhAO3EgDtHKqpRGaC xjjqCjDSOvSRD3A3BeGkPe6451R66GlXp+trlNWb08VWgIvACpHJWaiZG9OxXJw= =mtf5 -----END PGP SIGNATURE-----
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(