-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Formatting can be improved #40
Comments
Setting either the language prop or the defaultLanguage one to The reason we can't set the language to
What you're doing is declaring a block statement and not a JS or JSON object, that's also probably the reason of the weird formatting. There are surely ways to fix this. The first thing I can think of is to integrate prettier in monaco, set the |
any idea here? @marilari88 |
When you paste some JSON into the values editor, monaco editor formats it automatically. However, the formatting is not the best. I am attaching an example:
Here is the JSON I am using for the example, and how it should ideally be formatted
I tried changing the default language for the
Editor
component in the Values Editor tojson
instead oftypescript
, but did not see any improvement.The text was updated successfully, but these errors were encountered: