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

[bug]: cannot auto-import tap #17

Open
spaceunifyfifty opened this issue Jul 30, 2024 · 0 comments
Open

[bug]: cannot auto-import tap #17

spaceunifyfifty opened this issue Jul 30, 2024 · 0 comments

Comments

@spaceunifyfifty
Copy link

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.

image
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
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