ocaml-lsp icon indicating copy to clipboard operation
ocaml-lsp copied to clipboard

All auto-completion problems

Open ulugbekna opened this issue 3 years ago • 2 comments

An umbrella issue for auto-completion problems:

  • [ ] Doesn't work with incorrect suffix - #838
  • [ ] Doesn't work for record fields - https://github.com/ocamllabs/vscode-ocaml-platform/issues/956
  • [ ] Doesn't work for named arguments

given

let aux acc x = acc + x in 
List.fold_left [1; 2; 3] ~init:0 ~f:<|>

should olsp offer completion? Currently, one can circumvent the problem by using a typed hole ~f:_ will offer suggestions to fill the hole.

ulugbekna avatar Dec 05 '22 13:12 ulugbekna

After !, ocaml-lsp should offer to complete references, but it offers operators starting with ! (technically fine, but the former behavior is mostly what you want when typing !). If you put a space after ! it works.

copy avatar May 11 '23 05:05 copy

  • [ ] Doesn't autocomplete OCaml object methods. Though this is downstream issue with merlin. See https://github.com/ocaml/merlin/issues/1575

sidkshatriya avatar May 11 '23 07:05 sidkshatriya