Skip to content

Support adding dependencies for depend_on_referenced_packages #4721

Closed
@DanTup

Description

@DanTup

When you paste imports that are not in your pubspec, we usually show a "Add foo to dependencies" quick-fix. This doesn't happen if the package is a transitive dependency because the error code is depend_on_referenced_packages and not one of ["uri_does_not_exist", "conditional_uri_does_not_exist"].

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)in editorRelates to code editing or language featuresis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions