Skip to content

Ctrl+Click on constructor declarations does not find references, but the same on method declarations does #4020

@DanTup

Description

@DanTup
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?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions