Skip to content

Commit f3f1b3b

Browse files
author
Brad Cornes
committed
fix config helper hover range
1 parent 7f411e3 commit f3f1b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss-language-server/src/providers/hoverProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function provideCssHelperHover(
4040

4141
if (match === null) return null
4242

43-
const startChar = match.index + 7
43+
const startChar = match.index + match.groups.helper.length + 2
4444
const endChar = startChar + match.groups.key.length
4545

4646
if (position.character < startChar || position.character >= endChar) {

0 commit comments

Comments
 (0)