-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ES|QL] Register commands onDidMount #244453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ES|QL] Register commands onDidMount #244453
Conversation
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
|
Pinging @elastic/kibana-esql (Team:ESQL) |
sddonne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I like the new organisation
| application?: CoreStart['application']; | ||
| uiActions: ESQLEditorDeps['uiActions']; | ||
| telemetryService: ESQLEditorTelemetryService; | ||
| editor1: React.RefObject<monaco.editor.IStandaloneCodeEditor>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it was like this before the PR, but could we replace editor1 by editorRef?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I will do it on a follow up to change this editor1 from all places for consistency
## Summary Part of elastic#243576 Registers the custom commands only once on the didMount and disposes them on cleanup
Summary
Part of #243576
Registers the custom commands only once on the didMount and disposes them on cleanup