Skip to content

Add Convert to 'package:' import for everywhere in file context action #3823

@Luckey-Elijah

Description

@Luckey-Elijah

Is your feature request related to a problem? Please describe.
When Working on fixing up old code that uses relative imports, many times it uses relative imports in the dart source code.

Describe the solution you'd like
I would like a context action that will Convert to 'package:' import for everywhere in file. Similar to what screen-capped is below.
Screen Shot 2022-02-08 at 10 07 32 AM

Describe alternatives you've considered
Using the same Convert to 'package:' import actions several times on a file import directives.

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 enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions