void main() {
A.named().foo();
A.named().foo();
}
class A {
A.named() {} // Ctrl+Click on named does nothing
void foo() {} // Ctrl+Click on foo finds the references above
}
It seems like VS Code may be sending requests for both definition+references in the case that works, but only definition in the case that doesn't (perhaps the response to definition being empty is suppressing the later?).