pixie-io / grafana-plugin

Pixie's datasource plugin for Grafana.
Apache License 2.0
17 stars 11 forks source link

Add line numbers to the editor #49

Closed TarasPriadka closed 2 years ago

TarasPriadka commented 2 years ago

Adding line numbers to our editor to make it easier for users to navigate and fix errors in their scripts.

One comment about using css here. Webpack of the component injects a bunch of default style information into the component upon build, so the style information is not propagated into the component from css. Therefore we still need to use style={editorStyle} to get the right styles for the component.

Editor with line numbers:

image

Signed-off-by: Taras Priadka tpriadka@pixielabs.ai