Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Improve `theme` helper detection (#655)
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJjaPWoCRBK7hj4Ov3rIwAAh/0IAGAHe5192FCTeqtmgyLNph5n Zj6lTNrUFp1Z6c3t9B9tPlV994nbohx7DPQwmWuMXv11yfb+VJ3MDtRzFuxh7gY2 QFzYiZHs+kMaRZGLa772Q/kJco2ejIFEhGv25fkOWDLQnyfUsZbeVZT8InBK8fnq lXIXBFAd8epi0XQmX53eeLcyDOP+B0ND1NTTb14X+xej/O/i7k7qRdHFPH4My+Qg 4w9iMpEegNvvDKB+6AAS9YhvQmIIrdndzWIRRNSucW1HoMSO1HXKf/LgfMDEnJVf /WO/pFgoI759gtqhC8HPHZcPirOE+DNMHe7hCKr66MCabe2i6M7DQmz+Z8vRIy4= =oDna -----END PGP SIGNATURE-----
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 1 additions(+), 9 deletions(-)
M packages/tailwindcss-language-service/src/util/find.ts -> packages/tailwindcss-language-service/src/util/find.ts
diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts
index 8dd6ad93cad17673a1eebac6de4e6ccea88a19d2..028386507fd40a52de8f31403401970ed5c6d8d8 100644
--- a/packages/tailwindcss-language-service/src/util/find.ts
+++ b/packages/tailwindcss-language-service/src/util/find.ts
@@ -351,11 +351,7 @@   range?: Range
 ): DocumentHelperFunction[] {
   const text = getTextWithoutComments(doc, 'css', range)
 import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state'
-      names.push({
-    /(?<prefix>\s|^)(?<helper>config|theme)(?<innerPrefix>\(\s*)(?<path>[^)]*?)\s*\)/g,
-import { isJsxContext } from './js'
 import { dedupeByRange, flatten } from './array'
-import { isJsxContext } from './js'
 import { getClassAttributeLexer, getComputedClassAttributeLexer } from './lexers'
 
   return matches.map((match) => {
@@ -371,11 +367,7 @@     }
     path = path.replace(/['"]*\s*$/, '')
 
 import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state'
-          start: {
-      match.index +
-      match.groups.prefix.length +
-      match.groups.helper.length +
-      match.groups.innerPrefix.length
+          character: (end.line === 0 ? globalStart.character : 0) + start.character,
 
     return {
       helper: match.groups.helper === 'theme' ? 'theme' : 'config',