Skip to content

Autocomplete import $ivy too #957

Merged
alexarchambault merged 3 commits intocom-lihaoyi:masterfrom
alexarchambault:tweak-completion
May 2, 2019
Merged

Autocomplete import $ivy too #957
alexarchambault merged 3 commits intocom-lihaoyi:masterfrom
alexarchambault:tweak-completion

Conversation

@alexarchambault
Copy link
Copy Markdown
Collaborator

No description provided.

@alexarchambault
Copy link
Copy Markdown
Collaborator Author

Result:
complete-dependencies

@lihaoyi
Copy link
Copy Markdown
Member

lihaoyi commented May 2, 2019

lgtm ship it

@alexarchambault alexarchambault merged commit 7e89968 into com-lihaoyi:master May 2, 2019
@alexarchambault alexarchambault deleted the tweak-completion branch May 2, 2019 13:07
tgodzik pushed a commit to scalameta/metals that referenced this pull request Sep 14, 2022
Hi, I've been playing around with Ammonite ivy import completions in metals (heavily inspired by com-lihaoyi/Ammonite#957) using the awesome coursier api, demo:

It works very similarly to the existing completions for `$file`s, essentially we just ask `coursierapi.Complete` for completions.  Additionally, when we're at `import $ivy.|` we return a snippet to handle backticks, and when we're at `group:|` we make sure to get scala verion-specific (e.g. `%%`) completions also (hopefully these are both clear from the video).

If you're all happy with this, I'd prefer to work incrementally on the above so as not to make one huge PR 🙂 .  Anyway, let me know what you think, thanks!
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

Successfully merging this pull request may close these issues.

2 participants