Skip to content

Commit

Permalink
show sort command field suggestions on space key
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimkibana committed Sep 11, 2024
1 parent 87b5630 commit b28b4e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function findNode(nodes: ESQLAstItem[], offset: number): ESQLSingleAstItem | und
return ret;
}
} else {
if (node.location.min <= offset && node.location.max >= offset) {
if (node && node.location && node.location.min <= offset && node.location.max >= offset) {
if ('args' in node) {
const ret = findNode(node.args, offset);
// if the found node is the marker, then return its parent
Expand Down

0 comments on commit b28b4e8

Please sign in to comment.