Skip to content

Go to Implementations on a getter gives random-looking results #4531

Closed
@jcollins-g

Description

@jcollins-g

Describe the bug
Right click and show implementations on a specific getter, and the in-line dialog shows obviously implausible suggestions. The feature works most of the time so I'm not sure what set of conditions is causing this. IntelliJ's plugin seems to give good results here, so to start with, filing with the VSCode plugin.

To Reproduce
Steps to reproduce the behavior:

  1. git clone git@github.com:dart-lang/dartdoc.git
  2. cd dartdoc && git checkout e8c5de44294d61890ef28ca91e3ecf38e50c1c69
  3. Set up directory as a Dart project
  4. Open lib/src/model/model_object_builder.dart in VSCode
  5. Go to line 36 and right click on modelBuilder, select "Go to Implementations".

Expected behavior
Show only links to valid implementations.

Screenshots
Screenshot 2023-05-08 at 1 34 46 PM

Please complete the following information:

  • Operating System and version: macOS 13.13.1
  • VS Code version: 1.78.0 (Universal)
  • Dart extension version: 3.63.20230502
  • Dart/Flutter SDK version: 3.1.0-86.0.dev
  • Target device (if the issue relates to Flutter debugging): n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions