axiomhq / axiom-grafana

The official Axiom datasource plugin for Grafana.
https://axiom.co
Apache License 2.0
6 stars 3 forks source link

enhance: ensure syntax highlighting on initial render #4

Closed Bensigo closed 1 year ago

Bensigo commented 1 year ago

I notice the query string gets displayed before the editor finishes loading the language, which is why syntax highlighting doesn't work on the initial render so I check to see if the language have been loading first before setting the value, which I also added a delay of 200 mil sec. This solution work.