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

method completion does not work? #26

Closed
rgrinberg opened this issue Apr 7, 2013 · 5 comments
Closed

method completion does not work? #26

rgrinberg opened this issue Apr 7, 2013 · 5 comments
Milestone

Comments

@rgrinberg
Copy link
Member

I cannot get a completion to work past a #. I realize this is probably a lot of work but it would be great to have this.

@let-def
Copy link
Contributor

let-def commented Apr 7, 2013

I have an unstable prototype with this functionality, though far from useful on real world code…
This feature will come, but don't expect it soon :).

@let-def let-def closed this as completed Apr 7, 2013
@let-def
Copy link
Contributor

let-def commented Apr 11, 2013

Just for your information, you can find early support for object completion in "object-support".
No efforts are done at the moment to complete/recover inside class definitions, but assistance is provided when using an object :).

Note that this is experimental code, it may be less stable than current version.

@let-def let-def reopened this Apr 11, 2013
@rgrinberg
Copy link
Member Author

I'll give it a try tonight. Too bad I do not come by objects too often in my code :D

@let-def
Copy link
Contributor

let-def commented Apr 11, 2013

Well, this is a first step toward a more general type-directed completion: at the moment only completing object methods, but some day we hope to use type of the function being applied to list labels, type of arguments, sort completion suggestions by type, and during matching, suggest constructors of type being matched in patterns.

It could even be possible to create template of matching construction, like prefilling "| Some <> -> <> | None -> <>" when the user types "match x with …" when x as an option type. Probably a bit too much (though it could be used to suggest missing cases), but still interesting feature :).

@ghost ghost assigned let-def Apr 15, 2013
@hcarty
Copy link
Member

hcarty commented Apr 16, 2013

Type-directed templates for generating basic code for matching all cases could be very useful, particularly with larger variants!

@let-def let-def closed this as completed May 17, 2013
catern pushed a commit to catern/merlin that referenced this issue May 6, 2024
Fix documentation rpc bug introduced in ocaml 5 merge
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

3 participants