Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

Invoking completion after ( replaces the word that comes before #356

@jqno

Description

@jqno

Steps to reproduce

  1. Check out https://github.com/jqno/EnsimeVimCompletionIssue
  2. Open CompletionTest.scala
  3. Write print and invoke completion; choose println.
  4. Write (
  5. Write he and invoke completion

Expected behaviour

The line is expanded to println(hello)

Actual behaviour

The line is expanded to hello)

More info

I tried to fix this bug and offer a PR, but unfortunately I couldn't figure it out. I have noticed that fun_en_complete_func is invoked with a base parameter of println(he, where I would have expected just he. However, it seems to come directly from VIM that way, so I'm not sure what the intended approach should be:

  • Try to get VIM to send he to ensime-vim instead of println(he
  • Adapt ensime-vim to return println(hello instead of just hello
  • Another approach entirely?

It seems to make sense to combine this with #271. I'd like to take a stab at that too, if you can give me some pointers :).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions