fix hover provider error on unknown class name
parent
2ec21694c3
commit
850ad5c0a5
|
@ -94,7 +94,7 @@ function classNameToHover(
|
||||||
{ className, range }: DocumentClassName
|
{ className, range }: DocumentClassName
|
||||||
): Hover {
|
): Hover {
|
||||||
const parts = getClassNameParts(state, className)
|
const parts = getClassNameParts(state, className)
|
||||||
if (parts === null) return null
|
if (!parts) return null
|
||||||
|
|
||||||
return {
|
return {
|
||||||
contents: {
|
contents: {
|
||||||
|
|
Loading…
Reference in New Issue