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
It looks like Go to definition works if an extension method is directly available in the scope of application - because it was defined there or brought by an import. e.g.
traitFoo[A]:defaaa="aaa"objectFoo:extension (foo: Foo[B])
defbbb="bbb"classBvalfoo=newFoo[B] {}
// <<>> marks spanvala=<<foo.aaa>>// the tree is Select(qualifier = Ident(name = foo), name = aaa)valb=<<>>foo.bbb // the tree is // Apply(// fun = Select(qualifier = Ident(name = Foo), name = bbb), - this part has incorrect span, which is just an offset of `foo`// args = List(Ident(name = foo))// )
Probably this issue is caused by incorrect span of Select tree, so it might need upstream fix in the compiler
Describe the bug
Go to definition
works for a member (foo.aaa
) but not for extension methodsExpected behavior
Go to definition
should work for extension methods as wellOperating system
macOS
Editor/Extension
VS Code
Version of Metals
1.0.0+25-36394776-SNAPSHOT
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: