-
Notifications
You must be signed in to change notification settings - Fork 94
Generate types via new metaModel.json
#421
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
Comments
Extremely WIP branch here: https://github.com/michaelpj/lsp/tree/mpj/metamodel I had to do the types for the metamodel manually since it seems like there isn't a maintained JSON schema library in Haskell, sadly. Codegen is going to be annoying. In particular we're going to have to deal with all the anonymous intersections and unions that the spec throws around. Often we rationalized those into e.g. sensible sum types, but I'm not sure if we can do that here... |
I'm making significant progress on this. I'm currently trying to deal with all the |
PR: #458 |
PR merged |
microsoft/language-server-protocol#67
There's a machine-readable specification of the protocol coming. It's specified in a non-standard way, so we'd have to do some work to process it, but it's probably still better than doing it by hand!
The text was updated successfully, but these errors were encountered: