Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Ensure jit state is reset
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 3 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 8c185f4eb4d092a5859ed47602807dae7069136b..9fbdd0b2090c24e3971d230f6fb902d436b91442 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -879,6 +879,9 @@           state.classList = state.jitContext.getClassList().map((className) => {
             return [className, { color: getColor(state, className) }]
           })
         }
+      } else {
+        delete state.jitContext
+        delete state.classList
       }
     } catch (error) {
       hook.unhook()