Skip to content

Commit 4bd3960

Browse files
committed
Only add description if there is text for hover
Signed-off-by: worksofliam <[email protected]>
1 parent ffd7189 commit 4bd3960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/providers/hoverProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function addSymbol(base: MarkdownString, symbol: LookupResult) {
181181
else if ('COLUMN_NAME' in symbol) {
182182
base.appendCodeblock(prepareParamType(symbol) + `\n`, `sql`);
183183
}
184-
else if ('name' in symbol) {
184+
else if ('name' in symbol && symbol.text) {
185185
addList(base, [
186186
`**Description:** ${symbol.text}`,
187187
]);

0 commit comments

Comments
 (0)