-
Notifications
You must be signed in to change notification settings - Fork 230
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
Comments
I have an unstable prototype with this functionality, though far from useful on real world code… |
Just for your information, you can find early support for object completion in "object-support". Note that this is experimental code, it may be less stable than current version. |
I'll give it a try tonight. Too bad I do not come by objects too often in my code :D |
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 :). |
Type-directed templates for generating basic code for matching all cases could be very useful, particularly with larger variants! |
Fix documentation rpc bug introduced in ocaml 5 merge
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.The text was updated successfully, but these errors were encountered: