Commit ac31e3b
[Console] Fix autoselecting last request (elastic#218001)
Fixes elastic#194257
## Summary
This PR fixes the bug in Console where, if there is a request on the
last line of the editor, it gets automatically selected when the editor
is open. This is because the cursor is initially placed at the last
position of the edition, and if this position turn out to be at the end
of the request, the request is selected because the editor is on focus.
We fix this by not focusing the editor initially (i.e. there is no
blinking cursor when you open the editor) - this ensures that there
won't be any initial request highlighting as per the logic on the
following line:
https://github.com/elastic/kibana/blob/5c78ff18484e77b5ec5a4ba2ab341ed65db4f21c/src/platform/plugins/shared/console/public/application/containers/editor/monaco_editor_actions_provider.ts#L73)
https://github.com/user-attachments/assets/6f10e59b-92c7-4501-bf01-54987bc2f2891 parent bc1b0f9 commit ac31e3b
File tree
1 file changed
+0
-1
lines changed1 file changed
+0
-1
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
0 commit comments