scalameta / metals-feature-requests

Issue tracker for Metals feature requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code action to import extension method or implicit class.

tgodzik opened this issue · comments

Is your feature request related to a problem? Please describe.

Currently, you can autocomplete extensions for Scala 3 and probably soon for Scala 2, however, it's not possible to automatically import it via quick fix similar to classes. It should be quite easy to add it to the existing code action.

Describe the solution you'd like

Extend the current code action to also work with extension methods, when not found.

Describe alternatives you've considered

You can autocomplete them at least in Scala 3.

Additional context

scalameta/metals#6002

Search terms

auto import extension implicit class