Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix config helper hover range
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 6ee4925a0660ed4c08dfc1546f369c247c178746..ce213758a18f24ae45a5f72ea00346e33b91d888 100644
--- a/packages/tailwindcss-language-server/src/providers/hoverProvider.ts
+++ b/packages/tailwindcss-language-server/src/providers/hoverProvider.ts
@@ -40,7 +40,7 @@   )
 
   if (match === null) return null
 
-  const startChar = match.index + 7
+  const startChar = match.index + match.groups.helper.length + 2
   const endChar = startChar + match.groups.key.length
 
   if (position.character < startChar || position.character >= endChar) {