-
Notifications
You must be signed in to change notification settings - Fork 61
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
LSP: code completion #52
Comments
Hey Laurent, As such, nope, we don't actually need to do this at FB for our projects that are written in rust. We just expose a the globals object via the LspContext (again, that function doesn't exist quite yet, but will shortly), and things automagically work. For what you folks are doing, with bazel being a separate Java program, I definitely think that could be a reasonable approach, and I'd say you'd want a tool that turned your protos there into an LspContext implementation. But that's not particularly something we'd be doing in this repo, since the major use case is using our rust implementation as our interpreter. |
I presume this is what |
Yep, we're not going to do a proto-based completion, but given the LspContext hooks, someone could easily do that themselves, so closing this. |
Hi,
Thanks to @DanielEliad's PR (#51), I've noticed the LSP code in the repo. It's very nice to see an update on this!
I think it's important to keep the LSP generic enough to accomodate multiple dialects of Starlark. I imagine you'll need it at Facebook too. Our approach at Google was to define a proto file that contains all the definitions for a dialect (all the builtins, all the types, all the methods on the types).
It would be very useful to align on this and use a compatible solution.
The text was updated successfully, but these errors were encountered: