Skip to content

Find usages in this hierarchy #56176

Open
@marcglasberg

Description

@marcglasberg

In IntelliJ, if you press CTRL-ALT-F7 in a keyword that is used a lot, like a toString() declaration (in a large codebase), it will take FOREVER to finish. Actually I am not sure it would finish, I could never really wait enough to see it finish. I just see this:

194624662-5bb7122e-9a4d-46b6-885c-5776b3384fb4

As per @stevemessick suggestion (here: flutter/flutter-intellij#6346) I'm opening this to ask for a "Find usages in this hierarchy".

It should simply find the usages of the method on objects of that specific class and its subclasses.

It should not matter where it's defined. It matters the class of the method the caret was when I asked for Find Usages. It I was in MyClass.toString() then it finds toString() usages for MyClass and its subclasses. It should not find in superclasses. For example, it should not find this:

void logError(Object? obj) => obj.toString();

But it would find those:

void logError(MyClass? obj) => obj.toString();
void logError(MyClassSubclass? obj) => obj.toString();

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellijTracking issues for the Dart IntelliJ plugin.type-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