Skip to content
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

Auto-generate most of the schema possibilities for .sublime-settings? #23

Open
rwols opened this issue Apr 7, 2020 · 1 comment
Open

Comments

@rwols
Copy link
Member

rwols commented Apr 7, 2020

The PackageDev package generates popups with a description of the key for settings files. For example:

Screenshot from 2020-04-07 22-05-37

Because we're basically doing the same for schema files (for .sublime-settings) manually, I think it would be worthwhile to look into how to automate writing a skeleton schema file for a given .sublime-settings file.

I've skimmed through the code and I think this is the relevant part:

https://github.com/SublimeText/PackageDev/blob/ac1fb9803319ab518c664110f2f0f82a33f1fe73/plugins_/settings/known_settings.py#L254-L312

@rchl
Copy link
Member

rchl commented Aug 26, 2020

There are nice tools like https://app.quicktype.io/#l=schema to generate schema from JSON but those won't obviously handle comments and attach those as description to properties.

A possible option is to fork that app and add needed functionality to it.

Or just generate schema using it and manually extend with comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants