You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When working in Scala 3 you will at times get diagnostics that mention that an import may fix the problem. For example I just tried using "someString".toTermName and Scala 3 returned this as a diagnostic
Diagnostics:
1. value toTermName is not a member of String, but could be made available as an extension method.
The following import might fix the problem:
import dotty.tools.dotc.core.Decorators.toTermName
Describe the solution you'd like
In this situation I think it'd be perfect to also have a code action that can be triggered on toTermName which will offer to add the import in the same way we treat a Not Found: diagnostic. In this case, the code action would import dotty.tools.dotc.core.Decorators.toTermName
Describe alternatives you've considered
Manually adding it.
Additional contex
No response
Search terms
Scala 3 extension code action import
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When working in Scala 3 you will at times get diagnostics that mention that an import may fix the problem. For example I just tried using
"someString".toTermName
and Scala 3 returned this as a diagnosticDescribe the solution you'd like
In this situation I think it'd be perfect to also have a code action that can be triggered on
toTermName
which will offer to add the import in the same way we treat aNot Found:
diagnostic. In this case, the code action would importdotty.tools.dotc.core.Decorators.toTermName
Describe alternatives you've considered
Manually adding it.
Additional contex
No response
Search terms
Scala 3 extension code action import
The text was updated successfully, but these errors were encountered: