diff --git a/src/platform/packages/shared/kbn-esql-language/src/language/hover/index.ts b/src/platform/packages/shared/kbn-esql-language/src/language/hover/index.ts index 2818feafb4422..8b716d6683a5b 100644 --- a/src/platform/packages/shared/kbn-esql-language/src/language/hover/index.ts +++ b/src/platform/packages/shared/kbn-esql-language/src/language/hover/index.ts @@ -8,7 +8,7 @@ */ import type { ESQLCallbacks } from '@kbn/esql-types'; import { Walker, within } from '../../ast'; -import { parse } from '../../parser'; +import { Parser } from '../../parser'; import { type ESQLFunction, type ESQLSingleAstItem, type ESQLSource } from '../../types'; @@ -28,7 +28,7 @@ interface HoverContent { export async function getHoverItem(fullText: string, offset: number, callbacks?: ESQLCallbacks) { const correctedQuery = correctQuerySyntax(fullText, offset); - const { root } = parse(correctedQuery); + const { root } = Parser.parse(correctedQuery); let containingFunction: ESQLFunction<'variadic-call'> | undefined; let node: ESQLSingleAstItem | undefined; @@ -94,7 +94,7 @@ export async function getHoverItem(fullText: string, offset: number, callbacks?: } // Function signature hover - if (node.type === 'function') { + if (node.type === 'function' && node.name !== '=') { const functionSignature = await getFunctionSignatureHover(node); hoverContent.contents.push(...functionSignature); }