Skip to content

Commit 850ad5c

Browse files
author
Brad Cornes
committed
fix hover provider error on unknown class name
1 parent 2ec2169 commit 850ad5c

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
@@ -94,7 +94,7 @@ function classNameToHover(
9494
{ className, range }: DocumentClassName
9595
): Hover {
9696
const parts = getClassNameParts(state, className)
97-
if (parts === null) return null
97+
if (!parts) return null
9898

9999
return {
100100
contents: {

0 commit comments

Comments
 (0)