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