Skip to content
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-feature: autocomplete available generics for which the type registered a method. #76

Open
ltuijnder opened this issue Oct 7, 2024 · 0 comments

Comments

@ltuijnder
Copy link

ltuijnder commented Oct 7, 2024

It would be super cool if in the future lsp could auto complete the available methods that are registered for a given type if one types the object name and then a pipe operator.

Eg. from the S3 method example: https://vapour.run/docs/example-s3. It would be super cool if I type:

let john: user = create_user() |>

Then a menu pops up with a list of the available methods for type user. Eg. here set_id and set_name

This feature would then give a similar experience as encapsulated OOP frameworks where typing the access operator on an object (like . in python classes) would give a list of available properties/methods for said object.

For me this would also solve one of the fundamental issues that I have with S3. Namely that I have to know the available generics for a given class off the top of my head.

(ps. I know that currently the lsp does not have an autocomplete feature. But once we get there it would be cool if the above described functionality is also added :) )

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

No branches or pull requests

1 participant