-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support LSP references for better-monadic-for implicits #393
Comments
Thanks for the report. It seems that |
There seem to be 2 problems here:
1. the usages of
|
Thanks for investigating @kasiaMarek I don't think we can do anything as from the compiler perspective the current behaviour is correct. There is no way for us to know bar$implicit$1 and bar are the same symbol from source code perspective. This might be quite hard to fix since it requires some changes in the plugin and possibly the compiler. As such, I will move it to a feature request. |
Describe the bug
Find references doesn't work for implicits declared with
better-monadic-for
. Only the reference to the implicit itself is returned. Tried in nvim and vscode.Steps to reproduce:
Hello.scala
, put the cursor on line 6 (wordbar
) linkExpected behavior
A list of references to classes/methods an implicit (
Bar
in the repro example) is passed to (constructors of classesFoo
andBaz
in the repro example)Operating system
macOS
Editor/Extension
Nvim (nvim-metals)
Version of Metals
v.1.2.0
Extra context or search terms
Screenshot:
The text was updated successfully, but these errors were encountered: