Skip to content
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

Code action to import extension method or implicit class. #368

Open
tgodzik opened this issue Jan 9, 2024 · 0 comments
Open

Code action to import extension method or implicit class. #368

tgodzik opened this issue Jan 9, 2024 · 0 comments

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Jan 9, 2024

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

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

No branches or pull requests

1 participant