-
Notifications
You must be signed in to change notification settings - Fork 33
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
API endpoint to expose ASTs #1728
Comments
An API seems like it would take a lot of server performance to supply everyone's needs. Additionally, sending whole data packs and AST results over the network seems like a waste and could get slow. I think if you could use the |
Thanks for your answer! |
@SPGoding I know there were plans a while ago to have some kind of extension API. Do you still think this is feasible, and how would we go about doing that? |
I think last time I thought about this, instead of creating and maintaining some sort of public API, we would just allow Popular Projects (TM) to create |
Hey!
Maybe this is a bit out-of-scope of Sypglass but I still suggest.
I have a lot of ideas of tools I want to do around datapacks. Still, my main limitation is always parsing/linking steps and co-evolving these parsers/linkers with new Minecraft versions. Especially when it comes to have them for the different datapack resources (functions, advancements, predicates, …) we want to link.
Currently, Spyglass is the reference concerning datapack tooling. It already has these parsers/linkers and numerous maintainers to follow the Minecraft versions. So I think it would be a lost of time to reinvent the wheel.
Do you think it would be possible for Spyglass to have a specific endpoint, out of the LSP protocol, we can query (or even subscribe) to get the object graph of a datapack (including ASTs and CSTs information)? The main idea is to still use Spyglass for all the frontend/LSP tooling with the capability to provide other tools not in the scope of LSP but by taking advantage of what Spyglass already does.
The text was updated successfully, but these errors were encountered: