Skip to content

Conversation

PieterOlivier
Copy link
Contributor

@PieterOlivier PieterOlivier commented Aug 22, 2025

The design is documented using "description" sections in LanguageServer.rsc. Feedback on the documentation as well as the design is appreciated!

Copy link
Member

@toinehartman toinehartman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am excited to see this in action! Since we already discussed this design together, my comments mostly consider documentation and naming.

Copy link
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's looking good, it's not a small API, but it's looking good.

@jurgenvinju
Copy link
Member

It would perhaps be good to test drive this contribution with a generic function that takes a reified grammar and produces a simplified syntax directed completion contribution function (based on error trees or normal trees). To be used as completion(syntaxDirectedCompletion(#start[Program])) for example for Pico?

That way we can see if the LSP side fits on the Rascal side with what we have in mind. Or if we still need to think more about the Rascal side.

@DavyLandman
Copy link
Member

I've discussed the design choice of merging the 2 LSP enums into one ADT with @jurgenvinju and he agrees that in the end it's the cleanest solution. It's not 100% ideal, but the alternatives are worse for the end users.

He indicated he would take a final look at the rest of the API today, as he had some concerns and wanted to verify how they were addressed.

Copy link
Member

@jurgenvinju jurgenvinju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

Copy link

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

Successfully merging this pull request may close these issues.

4 participants