Skip to content

Hovers should show what imports are adding that declaration #56935

Open
@FMorschel

Description

@FMorschel

Inspired by #32735.

When you have hovers today they show the origin of a given type at the end like the following:

import 'b.dart' as lib;

void main() {
  lib.MyClass();
}

image

But the URI placed there is not consistent with the current imported URI from the import directive.


Edit

I'm asking for the hover to also show exactly which import directives (may be more than one) are exporting that declaration. This would help identifying where are you getting it from wich may be helpful when you're unfamiliar with the current project/package.


CC: @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-hoverIssues related to hoversdevexp-uxtype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions