Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix hover provider error on unknown class name
Brad Cornes <brad@parall.ax>
4 years ago
1 changed files, 1 additions(+), 1 deletions(-)
M packages/tailwindcss-language-server/src/providers/hoverProvider.ts -> packages/tailwindcss-language-server/src/providers/hoverProvider.ts
diff --git a/packages/tailwindcss-language-server/src/providers/hoverProvider.ts b/packages/tailwindcss-language-server/src/providers/hoverProvider.ts
index 6f009a4e1dc9a9288dce060554ef88908eb86857..6ee4925a0660ed4c08dfc1546f369c247c178746 100644
--- a/packages/tailwindcss-language-server/src/providers/hoverProvider.ts
+++ b/packages/tailwindcss-language-server/src/providers/hoverProvider.ts
@@ -94,7 +94,7 @@   state: State,
   { className, range }: DocumentClassName
 ): Hover {
   const parts = getClassNameParts(state, className)
-  if (parts === null) return null
+  if (!parts) return null
 
   return {
     contents: {