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
In the code example below, Metals doesn't complete incr, and only if we import a.IntEnrichment.incr in B.scala Metals can complete incr there.
// A.scalapackageaobjectIntEnrichment:extension (num: Int)
defincr:Int= num +1// B.scalapackagebdefmain=1.in@@
As a result of the lack of code completion for the missing extension method, developers have to seek the extension method and import it manually. It is quite time-consuming and sometimes leads developers to write the duplicated method because they couldn't find the one.
Describe the solution you'd like
// A.scalapackageaobjectIntEnrichment:extension (num: Int)
defincr:Int= num +1// B.scalapackagebdefmain=1.in@@
complete for incr and auto-import a.IntEnrichment.incr.
auto-importing missing extension method may help scalameta/metals#4141 but it doesn't make us easier to find an extension method we want without knowing.
Additional contex
No response
Search terms
extension method / auto-completion
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Somehow related to #141
In the code example below, Metals doesn't complete
incr
, and only if we importa.IntEnrichment.incr
inB.scala
Metals can completeincr
there.As a result of the lack of code completion for the missing extension method, developers have to seek the extension method and import it manually. It is quite time-consuming and sometimes leads developers to write the duplicated method because they couldn't find the one.
Describe the solution you'd like
complete for
incr
and auto-importa.IntEnrichment.incr
.Describe alternatives you've considered
auto-importing missing extension method may help scalameta/metals#4141 but it doesn't make us easier to find an extension method we want without knowing.
Additional contex
No response
Search terms
extension method / auto-completion
The text was updated successfully, but these errors were encountered: