-
Notifications
You must be signed in to change notification settings - Fork 12
First version of "completion" design #706
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
rascal-lsp/src/main/rascal/library/demo/lang/pico/LanguageServer.rsc
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Co-authored-by: Toine Hartman <[email protected]>
Co-authored-by: Toine Hartman <[email protected]>
Co-authored-by: Toine Hartman <[email protected]>
Co-authored-by: Toine Hartman <[email protected]>
Co-authored-by: Toine Hartman <[email protected]>
Co-authored-by: Toine Hartman <[email protected]>
Co-authored-by: Toine Hartman <[email protected]>
…al-language-servers into completions/parametric
rascal-lsp/src/main/rascal/library/demo/lang/pico/LanguageServer.rsc
Outdated
Show resolved
Hide resolved
…er.rsc Co-authored-by: Toine Hartman <[email protected]>
…al-language-servers into completions/parametric
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 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. |
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. |
Co-authored-by: Toine Hartman <[email protected]>
…al-language-servers into completions/parametric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it
|
The design is documented using "description" sections in
LanguageServer.rsc
. Feedback on the documentation as well as the design is appreciated!