Skip to content

Auto-completion that adds new import lines (like override) should also update existing imports that use combinators #60751

Open
@FMorschel

Description

@FMorschel

Say you have:

base.dart

class A {}

class B {
  A a => A();
}

main.dart

import 'base.dart' show B;

class C extends B {
  @overr^
}

This completion list would show all things from Object and the completion for overriding B.a.

If A was declared in another file, say a.dart, the new import would be added above, and everything would work as expected. But since it is defined in the same import that uses a combinator, the completion will add the type to the line as the expected return type, but it currently doesn't fix the import line.

CC @bwilkerson @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions