Skip to content

Auto-imports not working for extension members #4143

@DanTup

Description

@DanTup

Using a recent nightly (which uses NotImportedContributor), completing on firstOrNull from package:collection does not add the import statement:

Screenshot 2022-09-05 at 16 56 06

Importing on something else (like calculate() from the default command line project) does insert the import statement.

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