Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Resolve helper functions in CSS previews (#766)
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJkR/YACRBK7hj4Ov3rIwAAFuoIAFL7wL7jttxEgoMJlxDown3R b8bm/Hu0SJSRRtAYqRvcRUCTvGBFsV9LTGx9iqkjAThYnOlOJt6VGLk9nTOc6Uvl mP4w5R+W0/dJEycX2f6w4Q5WTLT4Ui5FUEkvI6KDCbvpO2MusHnouoBRQ56v+o0u e0WE85uFEHQ3mmw1UGJFRiTiIvGq7RLJlZ4Gv8QG1IINiDXNKGvDjPfmLQLkCsgv 95Ao/MsS7Tlt6q+kRhpBcXNTogWou6cGFppMfVMizzoswmxZmjAfwDkeAX21ibFR bIjC8hyG+h65j6NOm/ByYqQFcV09r+0FvbF519BeuInO6NUFP1qQu3oPDu1qxUA= =n2ZB -----END PGP SIGNATURE-----
Brad Cornes <hello@bradley.dev>
2 years ago
3 changed files, 9 additions(+), 0 deletions(-)
M packages/tailwindcss-language-server/src/server.ts -> packages/tailwindcss-language-server/src/server.ts
diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts
index 6f31a61684ed6e378b58292ebf09bd0b53d06a1f..d981fddb15908e1416873fea6ffee10aef9b2269 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -767,6 +767,13 @@                 require(resolveFrom(configDir, 'tailwindcss/lib/jit/lib/expandApplyAtRules'))
                   .default
             ),
           },
+          evaluateTailwindFunctions: {
+            module: firstOptional(
+              () =>
+                require(resolveFrom(configDir, 'tailwindcss/lib/lib/evaluateTailwindFunctions'))
+                  .default
+            ),
+          },
         }
       } catch (_) {
         try {
M packages/tailwindcss-language-service/src/util/jit.ts -> packages/tailwindcss-language-service/src/util/jit.ts
diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts
index 40250d19b2bcc41c1a8fff0e5d2ae202c6620fc9..8ad7a309d7fffba86398963b3514c183673cc308 100644
--- a/packages/tailwindcss-language-service/src/util/jit.ts
+++ b/packages/tailwindcss-language-service/src/util/jit.ts
@@ -18,6 +18,7 @@     .sort(([a], [z]) => bigSign(a - z))
 
   let root = state.modules.postcss.module.root({ nodes: rules.map(([, rule]) => rule) })
   state.modules.jit.expandApplyAtRules.module(state.jitContext)(root)
+  state.modules.jit.evaluateTailwindFunctions?.module?.(state.jitContext)(root)
 
   let actualRules: Rule[] = []
   root.walkRules((subRule) => {
M packages/tailwindcss-language-service/src/util/state.ts -> packages/tailwindcss-language-service/src/util/state.ts
diff --git a/packages/tailwindcss-language-service/src/util/state.ts b/packages/tailwindcss-language-service/src/util/state.ts
index 5b8153a0e4863056033142acc76b895baa2bc386..cc2c416c66506b6563aaf2f7d762fef274b8a46b 100644
--- a/packages/tailwindcss-language-service/src/util/state.ts
+++ b/packages/tailwindcss-language-service/src/util/state.ts
@@ -110,6 +110,7 @@     jit?: {
       generateRules: { module: any }
       createContext: { module: any }
       expandApplyAtRules: { module: any }
+      evaluateTailwindFunctions?: { module: any }
     }
   }
   browserslist?: string[]