Skip to content

[ES|QL] Small improvements on the editor#251004

Merged
stratoula merged 8 commits intoelastic:mainfrom
stratoula:esql-editor-improvements
Feb 2, 2026
Merged

[ES|QL] Small improvements on the editor#251004
stratoula merged 8 commits intoelastic:mainfrom
stratoula:esql-editor-improvements

Conversation

@stratoula
Copy link
Copy Markdown
Contributor

@stratoula stratoula commented Jan 30, 2026

Summary

A bunch of improvements to the editor, mostly performance thingies

Boolean(editorMessages.warnings.length),
Boolean(editorIsInline),
Boolean(hasOutline)
const styles = useMemo(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memoized for performance

}

const unerlinedWarnings = allWarnings.filter((warning) => warning.underlinedWarning);
const underlinedWarnings = allWarnings.filter((warning) => warning.underlinedWarning);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

queryValidation(subscription).catch(() => {});
}
return () => (subscription.active = false);
queryValidation(subscription)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not working properly

return ESQLLang.getInlineCompletionsProvider?.(esqlCallbacks);
}, [esqlCallbacks]);

const codeEditorHoverProvider = useMemo(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memoized for performance like the rest providers

@stratoula stratoula added backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// release_note:skip Skip the PR/issue when compiling release notes v9.4.0 labels Jan 30, 2026
if (closingSquareBracketIndex !== -1) {
errorLength = warningMessage.length - openingSquareBracketIndex - 1;
}
const matches = truncatedWarning.match(quotedWarningMessageRegexp);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change for small performance benefits

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The callbacks was a huge memo. I split it into smaller chunks and moved it to a new hook. This will make it more performant and easier to maintain

@stratoula stratoula marked this pull request as ready for review January 30, 2026 10:43
@stratoula stratoula requested a review from a team as a code owner January 30, 2026 10:43
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@elastic elastic deleted a comment from elasticmachine Jan 30, 2026
Copy link
Copy Markdown
Contributor

@sddonne sddonne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! I think all changes makes sense.

@stratoula stratoula enabled auto-merge (squash) February 2, 2026 07:07
@stratoula stratoula merged commit cdc7b6a into elastic:main Feb 2, 2026
17 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
esql 535 536 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
esql 736.2KB 737.2KB +1.0KB

mbondyra added a commit to mbondyra/kibana that referenced this pull request Feb 2, 2026
…iew_cps

* commit '3cd2ea4a515d8a0aafd32f75dc61f1cff892a4b0':
  Fix Failing test: APM Service overview - header filters (elastic#250355)
  [ES|QL] Small improvements on the editor (elastic#251004)
  [ES|QL] Refactor promql validation (elastic#250996)
  [ES|QL] Update the readme in esql-utils (elastic#251024)
  [ES|QL] Grouping functions as arguments to scalar functions (elastic#251015)
  [ES|QL] focus editor when user uses visor (elastic#251084)
  [Contextual Security] add relationship node type for entity graph (elastic#249479)
  [One Workflow] Fix email connector documentation: to field (elastic#251171)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants