I write the .tap utility method and expect Zed to allow auto-importing this on keyboard shortcut cmd+.
class Foo
val x = Foo.tap()
When my caret is over .tap() and I press cmd+., no auto-import prompt appears, but instead an error message which demonstrates Zed is even aware of exactly where it needs to import it from.
value tap is not a member of object Foo, but could be made available as an extension method.
The following import might fix the problem:
import scala.util.chaining.scalaUtilChainingOps
I write the
.tap
utility method and expect Zed to allow auto-importing this on keyboard shortcutcmd+.
When my caret is over
.tap()
and I presscmd+.
, no auto-import prompt appears, but instead an error message which demonstrates Zed is even aware of exactly where it needs to import it from.