Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
restore user-defined mode config after compilation
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 7 additions(+), 0 deletions(-)
M packages/tailwindcss-intellisense/src/class-names/index.js -> packages/tailwindcss-intellisense/src/class-names/index.js
diff --git a/packages/tailwindcss-intellisense/src/class-names/index.js b/packages/tailwindcss-intellisense/src/class-names/index.js
index 68b469216533e199ad8424646b5854090e4e0071..f5bb6a20425f9616d5cf9eeaf89d6c4bcb54e90e 100644
--- a/packages/tailwindcss-intellisense/src/class-names/index.js
+++ b/packages/tailwindcss-intellisense/src/class-names/index.js
@@ -70,9 +70,11 @@       ? ['separator']
       : ['options', 'separator']
     let userSeperator
     let userPurge
+    let userMode
     let hook = Hook(fs.realpathSync(configPath), (exports) => {
       userSeperator = dlv(exports, sepLocation)
       userPurge = exports.purge
+      userMode = exports.mode
       dset(
         exports,
         sepLocation,
@@ -144,6 +146,11 @@         if (typeof userPurge !== 'undefined') {
           config.purge = userPurge
         } else {
           delete config.purge
+        }
+        if (typeof userMode !== 'undefined') {
+          config.mode = userMode
+        } else {
+          delete config.mode
         }
 
         const resolvedConfig = resolveConfig({