Skip to content

Reformat file. Organize imports by scope when package imports are used.  #6668

@ph55

Description

@ph55

Description

Package imports are used inside internal package called flutter_core.
Reformat file given following settings and imports inside package file:

image

image

Current Behavior

When "Optimize Imports" checkbox is checked external package like http treated the same way as the current package flutter_core and sorted alphabetically only.

image

Expected Behavior

When "Optimize Imports" checkbox is checked it should first organize by scope:

  1. Dart core libraries.
  2. Non-project external packages.
  3. Project files including package imports.

And only then organize each of the blocks alphabetically:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions