elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

Improve hook for setting the initial value #179658

Open ElenaStoeva opened 7 months ago

ElenaStoeva commented 7 months ago

The hook in src/plugins/console/public/application/containers/editor/monaco/use_set_initial_value.ts that provides a function for setting the initial value in the Console Monaco editor needs the following improvements:

### Tasks
- [ ] https://github.com/elastic/kibana/issues/179906
- [ ] Replace `window.addEventListener` with a Kibana service (e.g. `history`)
- [ ] Add unit tests for this hook https://github.com/elastic/kibana/pull/196836
elasticmachine commented 2 months ago

Pinging @elastic/kibana-management (Team:Kibana Management)