elastic / kibana

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

[Console] Improve handling of invalid requests #193582

Open yuliacech opened 1 month ago

yuliacech commented 1 month ago

Currently, when a request is invalid, the parser only contains information about the start of the request and the logic in requests_utils.ts (see this line) computes the line number where the invalid request should end. When there are comments following an invalid request, they are highlighted together with the request because the end line is detected incorrectly.

Screenshot

Image

elasticmachine commented 1 month ago

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