grafana / vscode-jsonnet

Full code support (formatting, highlighting, navigation, etc) for Jsonnet
Apache License 2.0
66 stars 7 forks source link

String-output #36

Open BobKerns opened 6 months ago

BobKerns commented 6 months ago

In using the plugin to generate non-JSON/YAML files, I found it frustrating to only be able to see the output as a single JSON string.

This PR adds two new commands, and one related feature.

I was unable to test the "Evaluate Expression (String)" variant, because I was unable to find an incantation for "Evaluate Expression" that did not give an error, for example, rejecting any simple input with a demand for an identifier. I don't know if this is an LSP bug or my misunderstanding, but Expression works the same as File so I believe my addition to be correct.

CLAassistant commented 6 months ago

CLA assistant check
All committers have signed the CLA.

julienduchesne commented 6 months ago

I'll test it out! 👁️ 👁️