You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The structs are in struct.rkt that correspond the typescript interface in the specification.
This project is not well maintained. The existing code is not good. Feel free to make the changes as long as you think it's better.
The bad thing is that we don't have reusable infrastructure to maintain a shared AST. So You have to use read/syntax to process text string from scratch.
Personal opinion:
consider use rebellion library. I planned to use it, but don't have time recently.
Implementation discuss:
I don't know how this feature interact with users at editor side. But the specification says typically selection ranges correspond to the nodes of the syntax tree.
You can run read/syntax on the text string, maintain the result between textDocument/didChange requests, and query the node that contains the given position.
I would be more than happy to try implementing this myself if you give me a few pointers on how to get started :)
The text was updated successfully, but these errors were encountered: