fix hover provider error on unknown class name

master
Brad Cornes 2020-04-22 19:18:57 +01:00
parent 2ec21694c3
commit 850ad5c0a5
1 changed files with 1 additions and 1 deletions

View File

@ -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: {