Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down
Loading